@@ -18,29 +18,29 @@ jobs:
1818 python-version : ["3.11"]
1919
2020 steps :
21- - uses : actions/checkout@v4
21+ - uses : actions/checkout@v6
2222 - name : Set up Python ${{ matrix.python-version }}
23- uses : actions/setup-python@v5
23+ uses : actions/setup-python@v6
2424 with :
2525 python-version : ${{ matrix.python-version }}
2626 - name : Install dependencies
2727 run : |
2828 python -m pip install --upgrade pip
29- python -m pip install flake8 parameterized pytest
29+ python -m pip install ruff parameterized pytest
3030 if [ -f dev_requirements.txt ]; then pip install -r dev_requirements.txt; else pip install -r requirements.txt; fi
31- - name : Lint with flake8
31+ - name : Lint with ruff
3232 run : |
3333 # stop the build if there are Python syntax errors or undefined names
34- flake8 . --count -- select=E9,F63,F7,F82 --show-source --statistics
34+ ruff check . --select=E9,F63,F7,F82 --output-format=full
3535 # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
36- flake8 . --count -- exit-zero --max-complexity=10 --max -line-length=127 --statistics
36+ ruff check . --exit-zero --line-length=127 --statistics
3737 - name : Test with pytest
3838 run : |
3939 pytest -vvv tests/
4040 - name : Build sdist and wheel
4141 run : pipx run build
4242 - name : Upload sdist and wheel as artifacts
43- uses : actions/upload-artifact@v4
43+ uses : actions/upload-artifact@v7
4444 with :
4545 name : dist
4646 path : dist
6161
6262 steps :
6363 # download sdist and wheel from dist job
64- - uses : actions/download-artifact@v4
65- # publish to PyPI using trusted publishing
66- - name : Publish to PyPI
67- uses : pypa/gh-action-pypi-publish@release/v1
64+ - uses : actions/download-artifact@v8
65+ with :
66+ path : dist
67+ # Publish to PyPI using trusted publishing
68+ - name : Publish to PyPI (v1.14.0)
69+ uses : pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b
70+
0 commit comments