diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 2127a27..7d9d2a8 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -9,12 +9,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.12" cache: pip - name: Install project and dependencies @@ -23,14 +23,20 @@ jobs: - name: Run test suite run: pytest -v --color=yes - check: # TODO: replace with pre-commit.ci + check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 with: - python-version: "3.10" - cache: pip - - uses: pre-commit/action@v3.0.0 - env: - SKIP: no-commit-to-branch # only for local development + python-version: "3.12" + # cache: pip # TODO: cache tools + + - name: Install tools + run: pip install twine build + + - name: Build and check + run: | + python -m build + twine check dist/*.whl diff --git a/pyproject.toml b/pyproject.toml index 3a1d6ab..e494e51 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,8 +56,6 @@ addopts = [ xfail_strict = true [tool.ruff] -# TODO: remove `target-version` when switching to PEP 621 -target-version = "py39" select = [ "F", # Pyflakes "E", # Pycodestyle errors