@@ -7,44 +7,42 @@ concurrency:
7
7
cancel-in-progress : true
8
8
9
9
jobs :
10
-
11
10
test :
12
-
13
- name : Python ${{ matrix.python-version }} (${{ matrix.os }})
14
- runs-on : ${{ matrix.os }}
15
11
strategy :
16
- max-parallel : 5
17
12
matrix :
18
- os : [ubuntu-latest, macos-latest]
19
- python-version : ['3.9', '3.10', '3.11']
13
+ runs-on :
14
+ - ubuntu-latest
15
+ - macos-latest
16
+ python-version :
17
+ - ' 3.9'
18
+ - ' 3.10'
19
+ - ' 3.11'
20
20
fail-fast : false
21
-
21
+ runs-on : ${{ matrix.runs-on }}
22
+ name : Python ${{ matrix.python-version }} (${{ matrix.runs-on }})
22
23
steps :
23
24
- uses : actions/checkout@v4
24
-
25
25
- uses : actions/setup-python@v5
26
26
with :
27
27
python-version : ${{ matrix.python-version }}
28
28
cache : pip
29
29
cache-dependency-path : pyproject.toml
30
-
31
30
- name : set useful environment variables
32
31
run : |
33
32
echo PYTHONVERSION=${{ matrix.python-version }} >> $GITHUB_ENV
34
33
echo EXOCTK_DATA=$RUNNER_WORKSPACE/exoctk/exoctk/data/ >> $GITHUB_ENV
35
-
36
- - run : pip freeze
37
-
38
- - run : pip install .[test]
39
-
40
- - run : pytest exoctk/tests/
41
-
34
+ - run : pip install .
42
35
- run : pip freeze > requirements-py${{ matrix.python-version }}-${{ matrix.os }}.txt
43
-
36
+ - run : pip install .[test]
37
+ - run : pytest exoctk/tests/ --cov ./ --cov-report term-missing --cov xml -n auto
38
+ - uses : codecov/codecov-action@v4
39
+ with :
40
+ files : ./coverage.xml
41
+ env :
42
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
44
43
- uses : actions/upload-artifact@v3
45
44
with :
46
45
path : requirements-py${{ matrix.python-version }}-${{ matrix.os }}.txt
47
-
48
46
- if : (github.event_name == 'release' && github.event.action == 'published')
49
47
uses : svenstaro/upload-release-action@v2
50
48
with :
0 commit comments