diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 04eab29..6f48f7d 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -9,17 +9,14 @@ on: jobs: test: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: fail-fast: false matrix: - # Generated with scripts/github_actions_get_python_versions.py python-version: [ - # NOTE: We do not check 3.8.0 because Flake8 does not run on it. - "3.8.1", + #$ uv python list --all-versions | awk '{print $1}' | sed -E 's/cpython-(3\.[0-9]+\.[0-9]+)-.*/"\1",/' | grep -v py | sort --version-sort | uniq "3.8.2", "3.8.3", - "3.8.4", "3.8.5", "3.8.6", "3.8.7", @@ -34,6 +31,8 @@ jobs: "3.8.16", "3.8.17", "3.8.18", + "3.8.19", + "3.8.20", "3.9.0", "3.9.1", "3.9.2", @@ -42,8 +41,6 @@ jobs: "3.9.5", "3.9.6", "3.9.7", - "3.9.8", - "3.9.9", "3.9.10", "3.9.11", "3.9.12", @@ -53,8 +50,13 @@ jobs: "3.9.16", "3.9.17", "3.9.18", + "3.9.19", + "3.9.20", + "3.9.21", + "3.9.22", + "3.9.23", + "3.9.24", "3.10.0", - "3.10.1", "3.10.2", "3.10.3", "3.10.4", @@ -63,35 +65,71 @@ jobs: "3.10.7", "3.10.8", "3.10.9", - "3.10.10", "3.10.11", "3.10.12", "3.10.13", - "3.11.0", + "3.10.14", + "3.10.15", + "3.10.16", + "3.10.17", + "3.10.18", + "3.10.19", "3.11.1", - "3.11.2", "3.11.3", "3.11.4", "3.11.5", "3.11.6", "3.11.7", "3.11.8", + "3.11.9", + "3.11.10", + "3.11.11", + "3.11.12", + "3.11.13", + "3.11.14", "3.12.0", "3.12.1", "3.12.2", - "3.x", - "pypy-3.8", # "pypy-3.9", "pypy-3.10" + "3.12.3", + "3.12.4", + "3.12.5", + "3.12.6", + "3.12.7", + "3.12.8", + "3.12.9", + "3.12.10", + "3.12.11", + "3.12.12", + "3.13.0", + "3.13.1", + "3.13.2", + "3.13.3", + "3.13.4", + "3.13.5", + "3.13.6", + "3.13.7", + "3.13.8", + "3.13.9", + + # manual additions + "pypy-3.8", + + # NOTE(@niklas): Mypy fails with a syntax error on `# type: ignore` on the first line for `utils_test.py` + # only on these PyPy versions.. huh? + # "pypy-3.9", + # "pypy-3.10", + # "pypy-3.11", ] steps: - uses: actions/checkout@v4 - - uses: NiklasRosenstein/slap@gha/install/v1 + - name: Install uv - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@v6 with: - version: "0.5.25" - - uses: actions/setup-python@v5 - with: { python-version: "${{ matrix.python-version }}" } - - run: slap test + version: "0.9.5" + python-version: "${{ matrix.python-version }}" + + - run: uvx --python 3.13 --from slap-cli slap test publish: runs-on: ubuntu-latest @@ -104,14 +142,12 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Python 3.13 - uses: actions/setup-python@v5 + - name: Install uv + uses: astral-sh/setup-uv@v6 with: + version: "0.9.5" python-version: "3.13" - - name: Install uv - run: python -m pip install uv - - name: Build dist run: uv build