@@ -27,12 +27,12 @@ jobs:
27
27
fail-fast : false
28
28
matrix :
29
29
platform : [ubuntu-latest, macos-latest, windows-latest]
30
- python-version : [" 3.8", " 3.9", " 3.10", " 3.11" ]
31
- method : [" conda", " ecmwflibs" ]
30
+ python-version : [' 3.8', ' 3.9', ' 3.10', ' 3.11' ]
31
+ method : [' conda', ' ecmwflibs' ]
32
32
exclude :
33
33
- platform : macos-latest
34
- python-version : " 3.9"
35
- method : " ecmwflibs"
34
+ python-version : ' 3.9'
35
+ method : ' ecmwflibs'
36
36
37
37
name : Python ${{ matrix.python-version }} on ${{ matrix.platform }} (${{ matrix.method }})
38
38
runs-on : ${{ matrix.platform }}
79
79
- run : pytest
80
80
if : matrix.method == 'conda' && matrix.platform == 'windows-latest'
81
81
env :
82
- ECCODES_DEFINITION_PATH : " C:/Miniconda/Library/share/eccodes/definitions"
83
- ECCODES_SAMPLES_PATH : " C:/Miniconda/Library/share/eccodes/samples"
82
+ ECCODES_DEFINITION_PATH : ' C:/Miniconda/Library/share/eccodes/definitions'
83
+ ECCODES_SAMPLES_PATH : ' C:/Miniconda/Library/share/eccodes/samples'
84
84
85
85
- run : pytest
86
86
if : matrix.method != 'conda' || matrix.platform != 'windows-latest'
89
89
90
90
- name : Upload coverage to Codecov
91
91
uses : codecov/codecov-action@v1
92
- if : " false"
93
-
94
- deploy :
95
- if : ${{ github.event_name == 'release' }}
96
-
97
- name : Upload to Pypi
98
- needs : checks
99
-
100
- runs-on : ubuntu-latest
101
-
102
- steps :
103
- - uses : actions/checkout@v3
104
-
105
- - name : Set up Python
106
- uses : actions/setup-python@v4
107
- with :
108
- python-version : " 3.x"
109
-
110
- - name : Install dependencies
111
- run : |
112
- python -m pip install --upgrade pip
113
- pip install setuptools wheel twine
114
-
115
- - name : Check version
116
- run : |
117
- release=${GITHUB_REF##*/}
118
- version=$(python setup.py --version)
119
- test "$release" == "$version"
120
-
121
- - name : Build and publish
122
- env :
123
- TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
124
- TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
125
- run : |
126
- python setup.py sdist
127
- twine upload dist/*
92
+ if : ' false'
0 commit comments