Skip to content

Commit

Permalink
Update versions & tools for pre-commit and python-tests github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewryanscott committed Feb 23, 2025
1 parent a28b381 commit b117222
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ on:
- push
jobs:
pre-commit:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]
with:
extra_args: --all-files
24 changes: 14 additions & 10 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,34 @@ on:
- push
jobs:
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-[email protected]
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
sudo apt-get -y install libsdl1.2-dev libsdl2-dev
python -m pip install --upgrade pip
pip install -r requirements/tests.txt
pip install .
- name: Test with pytest
- name: Install the project
run: uv sync --all-extras --dev

- name: Run tests
run: |
cd tests/python
pytest
uv run pytest

0 comments on commit b117222

Please sign in to comment.