@@ -6,51 +6,51 @@ name: Upload Python Package
6
6
on :
7
7
push : {}
8
8
release :
9
- types : [created]
9
+ types : [ created ]
10
10
11
11
jobs :
12
12
quality :
13
13
name : Code QA
14
14
runs-on : ubuntu-latest
15
15
steps :
16
- - uses : actions/checkout@v2
17
- - run : pip install black flake8 isort
18
- - run : black --version
19
- - run : isort --version
20
- - run : flake8 --version
21
- - run : isort --check .
22
- - run : black --check .
23
- - run : flake8 .
16
+ - uses : actions/checkout@v2
17
+ - run : pip install black flake8 isort
18
+ - run : black --version
19
+ - run : isort --version
20
+ - run : flake8 --version
21
+ - run : isort --check .
22
+ - run : black --check .
23
+ - run : flake8 .
24
24
25
25
checks :
26
26
if : ${{ github.event_name == 'release' }}
27
27
28
28
strategy :
29
29
fail-fast : false
30
30
matrix :
31
- platform : ["ubuntu-latest", "macos-latest"]
32
- python-version : ["3.9", "3.10", "3.11" ]
31
+ platform : [ "ubuntu-latest", "macos-latest" ]
32
+ python-version : [ "3.9", "3.10", "3.11" ]
33
33
34
34
name : Python ${{ matrix.python-version }} on ${{ matrix.platform }}
35
35
runs-on : ${{ matrix.platform }}
36
36
needs : quality
37
37
38
38
steps :
39
- - uses : actions/checkout@v2
39
+ - uses : actions/checkout@v2
40
40
41
- - uses : actions/setup-python@v2
42
- with :
43
- python-version : ${{ matrix.python-version }}
41
+ - uses : actions/setup-python@v2
42
+ with :
43
+ python-version : ${{ matrix.python-version }}
44
44
45
- - name : Install
46
- run : |
47
- pip install pytest
48
- pip install -e .
49
- pip install -r tests/requirements.txt
50
- pip freeze
45
+ - name : Install
46
+ run : |
47
+ pip install pytest
48
+ pip install -e .
49
+ pip install -r tests/requirements.txt
50
+ pip freeze
51
51
52
- - name : Tests
53
- run : pytest
52
+ - name : Tests
53
+ run : env SOURCES_TO_TEST=ecmwf pytest
54
54
55
55
deploy :
56
56
@@ -68,11 +68,11 @@ jobs:
68
68
69
69
- name : Check that tag version matches code version
70
70
run : |
71
- tag=${GITHUB_REF#refs/tags/}
72
- version=$(python setup.py --version)
73
- echo 'tag='$tag
74
- echo "version file="$version
75
- test "$tag" == "$version"
71
+ tag=${GITHUB_REF#refs/tags/}
72
+ version=$(python setup.py --version)
73
+ echo 'tag='$tag
74
+ echo "version file="$version
75
+ test "$tag" == "$version"
76
76
77
77
- name : Install dependencies
78
78
run : |
0 commit comments