@@ -15,18 +15,12 @@ jobs:
15
15
steps :
16
16
- name : ' Check out code'
17
17
uses : actions/checkout@v4
18
- - name : ' Install Nix'
19
-
20
- with :
21
- install_url : https://releases.nixos.org/nix/nix-2.24.12/install
22
- extra_nix_config : |
23
- substituters = http://cache.nixos.org https://cache.iog.io
24
- trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
25
- # note: we install uv from the nix flake in order to match the uv version that is used by uv2nix
18
+ # note: we install the same version of `uv` as used by `uv2nix` in order to match the nix derivation
26
19
- name : ' Install uv'
27
20
run : |
28
- nix profile install .#uv
29
- uv --version
21
+ UV_VERSION=$(curl -s https://raw.githubusercontent.com/pyproject-nix/uv2nix/$(cat deps/uv2nix)/pkgs/uv-bin/srcs.json | jq -r .version)
22
+ [[ "$UV_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]
23
+ curl -LsSf https://astral.sh/uv/$UV_VERSION/install.sh | sh && uv --version
30
24
- name : ' Run code quality checks'
31
25
run : make check
32
26
- name : ' Run pyupgrade'
@@ -39,18 +33,12 @@ jobs:
39
33
steps :
40
34
- name : ' Check out code'
41
35
uses : actions/checkout@v4
42
- - name : ' Install Nix'
43
-
44
- with :
45
- install_url : https://releases.nixos.org/nix/nix-2.24.12/install
46
- extra_nix_config : |
47
- substituters = http://cache.nixos.org https://cache.iog.io
48
- trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
49
- # note: we install uv from the nix flake in order to match the uv version that is used by uv2nix
36
+ # note: we install the same version of `uv` as used by `uv2nix` in order to match the nix derivation
50
37
- name : ' Install uv'
51
38
run : |
52
- nix profile install .#uv
53
- uv --version
39
+ UV_VERSION=$(curl -s https://raw.githubusercontent.com/pyproject-nix/uv2nix/$(cat deps/uv2nix)/pkgs/uv-bin/srcs.json | jq -r .version)
40
+ [[ "$UV_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]
41
+ curl -LsSf https://astral.sh/uv/$UV_VERSION/install.sh | sh && uv --version
54
42
- name : ' Run unit tests'
55
43
run : make cov-unit
56
44
0 commit comments