@@ -9,47 +9,20 @@ name: Python Build
99 pull_request :
1010
1111jobs :
12- development-mode :
13- name : pip development mode on ${{ matrix.os }}
14- runs-on : ${{ matrix.os }}
15- strategy :
16- fail-fast : false
17- matrix :
18- os : [macos-latest]
19- python-version : [3.8]
20-
21- steps :
22- - uses : actions/checkout@v2
23- - name : Set up Python ${{ matrix.python-version }}
24- uses : actions/setup-python@v2
25- with :
26- python-version : ${{ matrix.python-version }}
27-
28- - name : Install build packages and pytest
29- run : |
30- python -m pip install --upgrade pip wheel
31- python -m pip install scikit-build
32-
33- - name : Install python s2let
34- run : pip install -e .[dev]
35-
36- - name : run pytest
37- run : pytest src/test/python/
38-
3912 from-sdist :
4013 name : python source distribution
4114 runs-on : ubuntu-latest
4215 steps :
43- - uses : actions/checkout@v2
16+ - uses : actions/checkout@v3
4417 - name : Set up Python 3.8
45- uses : actions/setup-python@v2
18+ uses : actions/setup-python@v3
4619 with :
4720 python-version : 3.8
4821
4922 - name : Install build packages and pytest
5023 run : |
5124 python -m pip install --upgrade pip wheel setuptools
52- python -m pip install conan scikit-build pytest cython numpy
25+ python -m pip install " conan<2" scikit-build pytest cython numpy
5326
5427 - name : Create sdist
5528 run : python setup.py sdist
6033 - name : run pytest
6134 run : pytest src/test/python/
6235
63- - uses : actions/upload-artifact@v2
36+ - uses : actions/upload-artifact@v3
6437 if : ${{ startsWith(github.ref, 'refs/tags') }}
6538 with :
6639 path : ./dist/*.tar.gz
@@ -76,17 +49,17 @@ jobs:
7649 python-version : [3.8]
7750
7851 steps :
79- - uses : actions/checkout@v2
52+ - uses : actions/checkout@v3
8053
81- - uses : actions/setup-python@v2
54+ - uses : actions/setup-python@v3
8255 name : Install Python
8356 with :
8457 python-version : ${{ matrix.python-version }}
8558
8659 - name : Setup environment
8760 run : |
8861 python -m pip install --upgrade pip wheel
89- python -m pip install conan pytest
62+ python -m pip install " conan<2" pytest
9063 conan profile new default --detect
9164
9265 - name : Build wheels
9871 - name : run pytests
9972 run : pytest src/test/python/
10073
101- - uses : actions/upload-artifact@v2
74+ - uses : actions/upload-artifact@v3
10275 if : ${{ startsWith(github.ref, 'refs/tags') }}
10376 with :
10477 path : ./dist/*.whl
@@ -111,22 +84,22 @@ jobs:
11184 needs : [build_wheels, from-sdist]
11285 steps :
11386 - name : Download wheels and sdist
114- uses : actions/download-artifact@v2
87+ uses : actions/download-artifact@v3
11588
11689 - name : Move wheels and source distribution to dist/
11790 run : |
11891 mkdir -p dist
11992 mv source-distribution/*.tar.gz wheel-*/*.whl dist
12093
12194 - name : Publish distribution 📦 to Test PyPI
122- if : ${{ github.ref != 'refs/tags/v2.2.4 ' }}
95+ if : ${{ github.ref != 'refs/tags/v2.2.5 ' }}
12396 uses : pypa/gh-action-pypi-publish@master
12497 with :
12598 password : ${{ secrets.TEST_PYPI_TOKEN }}
12699 repository_url : https://test.pypi.org/legacy/
127100
128101 - name : Publish distribution 📦 to PyPI
129- if : ${{ github.ref == 'refs/tags/v2.2.4 ' }}
102+ if : ${{ github.ref == 'refs/tags/v2.2.5 ' }}
130103 uses : pypa/gh-action-pypi-publish@master
131104 with :
132105 password : ${{ secrets.PYPI_TOKEN }}
0 commit comments