@@ -22,10 +22,12 @@ jobs:
22
22
include :
23
23
# other OS version necessary
24
24
- os : macos-latest
25
- python-version : " 3.10 "
25
+ python-version : " 3.12 "
26
26
- os : windows-latest
27
- python-version : " 3.10 "
27
+ python-version : " 3.12 "
28
28
steps :
29
+ - uses : actions/checkout@v4
30
+
29
31
# Python and pip setup
30
32
- name : Set up Python ${{ matrix.python-version }}
31
33
uses : actions/setup-python@v5
37
39
38
40
- name : Get pip cache dir
39
41
id : pip-cache
42
+ shell : bash
40
43
run : |
41
- echo "::set-output name= dir:: $(pip cache dir)"
44
+ echo "dir= $(pip cache dir)" >> $GITHUB_OUTPUT
42
45
43
46
- name : pip cache
44
47
uses : actions/cache@v4
48
51
restore-keys : |
49
52
${{ runner.os }}-pip-
50
53
51
- # package setup
52
- - uses : actions/checkout@v4
53
-
54
54
- name : Install dependencies
55
- run : python -m pip install -e ".[dev]"
55
+ run : python -m pip install --upgrade - e ".[dev]"
56
56
57
57
# tests
58
58
- name : Lint with flake8
@@ -62,12 +62,10 @@ jobs:
62
62
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
63
63
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
64
64
65
- - name : Code format with black
65
+ - name : Code format and type checking
66
+ if : ${{ matrix.python-version == '3.13' }}
66
67
run : |
67
68
black --check --diff courlan
68
-
69
- - name : Type checking with mypy
70
- run : |
71
69
mypy -p courlan
72
70
73
71
- name : Test with pytest
76
74
77
75
# coverage
78
76
- name : Upload coverage to Codecov
77
+ if : ${{ matrix.python-version == '3.13' }}
79
78
uses : codecov/codecov-action@v4
80
79
env :
81
80
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
0 commit comments