88 runs-on : ubuntu-latest
99 strategy :
1010 matrix :
11- python-version : ['3.7 ', '3.8 ', '3.9 ', '3.10 ', '3.11 ']
11+ python-version : ['3.8 ', '3.9 ', '3.10 ', '3.11 ', '3.12 ']
1212
1313 steps :
14- - uses : actions/checkout@v2
14+ - uses : actions/checkout@v4
1515 - name : Set up Python ${{ matrix.python-version }}
16- uses : actions/setup-python@v2
16+ uses : actions/setup-python@v4
1717 with :
1818 python-version : ${{ matrix.python-version }}
1919 - name : Install dependencies
2020 run : |
2121 python -m pip install --upgrade pip
2222 pip install -e .[dev]
23- python setup.py develop
24- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
25- - name : Lint with flake8
23+ - name : Lint with ruff
2624 run : |
27- # stop the build if there are Python syntax errors or undefined names
28- flake8 xbox --count --select=E9,F63,F7,F82 --show-source --statistics
29- # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
30- flake8 xbox --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
25+ ruff check xbox
26+ ruff check tests
3127 - name : Test with pytest
3228 run : |
3329 pytest
@@ -36,20 +32,20 @@ jobs:
3632 runs-on : ubuntu-latest
3733 needs : build
3834 steps :
39- - uses : actions/checkout@v2
35+ - uses : actions/checkout@v4
4036 - name : Set up Python
41- uses : actions/setup-python@v2
37+ uses : actions/setup-python@v4
4238 with :
43- python-version : ' 3.11 '
39+ python-version : ' 3.12 '
4440 - name : Install dependencies
4541 run : |
4642 python -m pip install --upgrade pip
47- pip install setuptools wheel twine
43+ pip install setuptools wheel twine build
4844 - name : Build and publish
4945 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
5046 env :
5147 TWINE_USERNAME : __token__
5248 TWINE_PASSWORD : ${{ secrets.PYPI_API_KEY }}
5349 run : |
54- python setup.py sdist bdist_wheel
50+ python -m build
5551 twine upload dist/*
0 commit comments