Skip to content

Commit

Permalink
Test with all the Pythons 🐍 (#5)
Browse files Browse the repository at this point in the history
We'll ship a new version that supports more version of Python (see #4)

But let's make sure unit tests pass with each version.
  • Loading branch information
MaxHalford authored Oct 8, 2024
1 parent 84a348a commit 2b5b173
Show file tree
Hide file tree
Showing 4 changed files with 373 additions and 342 deletions.
7 changes: 6 additions & 1 deletion .github/actions/install-env/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Install Python env

inputs:
python-version:
required: true
description: "Python version"

runs:
using: "composite"
steps:
Expand All @@ -10,7 +15,7 @@ runs:
id: setup-python
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: ${{ inputs.python-version }}

- name: Load cached venv
id: cached-poetry-dependencies
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ on:
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-env
with:
python-version: ${{ matrix.python-version }}
- run: poetry run pytest
Loading

0 comments on commit 2b5b173

Please sign in to comment.