Skip to content

Commit

Permalink
workflows: update github action for ubuntu lts
Browse files Browse the repository at this point in the history
- Since tomllib requires Python 3.11, only run the config tests for 3.11+.
  • Loading branch information
R1kaB3rN committed Feb 21, 2024
1 parent 3c3177c commit ba0ec06
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/ulwgl-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ jobs:
strategy:
matrix:
# tomllib requires Python 3.11
version: ["3.11", "3.12"]
# Ubuntu latest (Jammy) provides Python 3.10
version: ["3.10", "3.11", "3.12"]

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.version }}
Expand All @@ -32,5 +33,9 @@ jobs:
pip install ruff
ruff --output-format github ulwgl_*.py
- name: Test with unittest
run: |
python3 ulwgl_test.py
if: matrix.python-version == 3.10
run: python3 ulwgl_test.py
- name: Test with unittest
if: matrix.python-version == 3.11 || matrix.python-version == 3.12
run: python3 ulwgl_test.py
run: python3 ulwgl_test_plugins.py

0 comments on commit ba0ec06

Please sign in to comment.