Skip to content

Commit

Permalink
New: test various Python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-zeller committed Oct 22, 2023
1 parent 71bea57 commit 83dc631
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/check-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
python-tests:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9.x", "3.10.x", "3.11.x", "3.12.x"]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -27,17 +30,20 @@ jobs:
# uses: styfle/[email protected]
# with:
# access_token: ${{ github.token }}
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

# You can test your matrix by printing the current Python version
- name: Show Python version
run: python -c "import sys; print(sys.version)"

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Check out Repository
uses: actions/checkout@v3

# We now test with Python 3.10
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10.9'

# Runs a set of commands using the runners shell
- name: Set up Path
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
Expand All @@ -55,9 +61,6 @@ jobs:
- name: Install Python Packages
run: pip install -r requirements.txt

- name: Check Python Version
run: python --version

- name: Code
run: make -k code

Expand Down

0 comments on commit 83dc631

Please sign in to comment.