@@ -15,18 +15,12 @@ jobs:
1515 steps :
1616 - name : ' Check out code'
1717 uses : actions/checkout@v4
18- - name : ' Install Nix'
19- uses : cachix/install-nix-action@v31.2.0
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
2619 - name : ' Install uv'
2720 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
3024 - name : ' Run code quality checks'
3125 run : make check
3226 - name : ' Run pyupgrade'
@@ -39,18 +33,12 @@ jobs:
3933 steps :
4034 - name : ' Check out code'
4135 uses : actions/checkout@v4
42- - name : ' Install Nix'
43- uses : cachix/install-nix-action@v31.2.0
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
5037 - name : ' Install uv'
5138 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
5442 - name : ' Run unit tests'
5543 run : make cov-unit
5644
0 commit comments