File tree 3 files changed +26
-14
lines changed
3 files changed +26
-14
lines changed Original file line number Diff line number Diff line change @@ -17,24 +17,31 @@ jobs:
17
17
strategy :
18
18
fail-fast : false
19
19
matrix :
20
- os :
21
- - ubuntu-latest
22
- - macos-latest
20
+ include :
21
+ - os : ubuntu-latest
22
+ python-version : python310
23
+ - os : macos-latest
24
+ python-version : python39
25
+ # see https://github.com/cachix/install-nix-action/issues/135
23
26
steps :
24
27
- uses : actions/checkout@v3
25
28
with :
26
29
fetch-depth : 0
27
- - uses : cachix/install-nix-action@v16
30
+ - uses : cachix/install-nix-action@v17
28
31
with :
29
32
nix_path : nixpkgs=channel:nixos-21.11
30
33
- name : Run tests in nix-shell
31
34
run : |
32
- nix-shell --pure --run '
33
- python -m venv venv
34
- source venv/bin/activate
35
- pip install -e '.[isort,test]'
36
- pytest
37
- ' ./default.nix
35
+ nix-shell \
36
+ --pure \
37
+ --argstr pythonVersion ${{ matrix.python-version }} \
38
+ --run '
39
+ python -m venv venv
40
+ source venv/bin/activate
41
+ pip install -e '.[isort,test]'
42
+ pytest
43
+ ' \
44
+ ./default.nix
38
45
39
46
build :
40
47
Original file line number Diff line number Diff line change 20
20
- Avoid memory leak from using ``@lru_cache `` on a method.
21
21
- Handle files encoded with an encoding other than UTF-8 without an exception.
22
22
- The GitHub Action now handles missing ``revision: `` correctly.
23
+ - Update ``cachix/install-nix-action `` to ``v17 `` to fix macOS build error.
24
+ - Downgrade Python from 3.10 to 3.9 in the macOS NixOS build on GitHub due to a build
25
+ error with Python 3.10.
23
26
24
27
25
28
1.4.2 _ - 2022-03-12
Original file line number Diff line number Diff line change 1
- with import <nixpkgs> { } ;
2
- stdenv . mkDerivation {
1
+ { pkgs ? import <nixpkgs> { } , pythonVersion ? "python310" } :
2
+ (
3
+ pkgs . stdenv . mkDerivation {
3
4
name = "darker-test" ;
4
- buildInputs = [ python310 git ] ;
5
- }
5
+ buildInputs = [ pkgs . ${ pythonVersion } pkgs . git ] ;
6
+ }
7
+ )
You can’t perform that action at this time.
0 commit comments