@@ -16,27 +16,22 @@ jobs:
1616 python-version : [3.9, "3.10", "3.11", "3.12", "3.13"]
1717
1818 steps :
19- - uses : actions/checkout@v4
20- - name : Setup Python # Set Python version
21- uses : actions /setup-python@v5
19+ - uses : actions/checkout@v6
20+ - name : Install uv
21+ uses : astral-sh /setup-uv@v8.0.0
2222 with :
2323 python-version : ${{ matrix.python-version }}
2424 - name : Install dependencies
2525 run : |
26- python -m pip install --upgrade pip
27- python -m pip install poetry
28- poetry config virtualenvs.create false
29- poetry install -E all -v
30- python -m pip install flake8
31- python -m pip install mypy
26+ uv sync --all-extras
3227 - name : Run mypy check
33- run : mypy -p varname
28+ run : uv run mypy -p varname
3429 - name : Run flake8
35- run : flake8 varname
30+ run : uv run flake8 varname
3631 - name : Test with pytest
37- run : pytest tests/ --junitxml=junit/test-results-${{ matrix.python-version }}.xml
32+ run : uv run pytest tests/ --junitxml=junit/test-results-${{ matrix.python-version }}.xml
3833 - name : Upload pytest test results
39- uses : actions/upload-artifact@v4
34+ uses : actions/upload-artifact@v7
4035 with :
4136 name : pytest-results-${{ matrix.python-version }}
4237 path : junit/test-results-${{ matrix.python-version }}.xml
@@ -56,13 +51,13 @@ jobs:
5651 matrix :
5752 python-version : ["3.12"]
5853 steps :
59- - uses : actions/checkout@v4
60- - name : Setup Python # Set Python version
61- uses : actions/setup-python@v5
62- - name : Install dependencies
54+ - uses : actions/checkout@v6
55+ - name : Install uv
56+ uses : astral-sh/setup-uv@v8.0.0
57+ with :
58+ python-version : ${{ matrix.python-version }}
59+ - name : Build and publish to PyPI
6360 run : |
64- python -m pip install --upgrade pip
65- python -m pip install poetry
66- - name : Publish to PyPI
67- run : poetry publish --build -u ${{ secrets.PYPI_USER }} -p ${{ secrets.PYPI_PASSWORD }}
61+ uv build
62+ uv publish --username ${{ secrets.PYPI_USER }} --password ${{ secrets.PYPI_PASSWORD }}
6863 if : success()
0 commit comments