Skip to content

Commit

Permalink
LF-52351 Try simplifying tox workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierMilesSeequent committed Aug 20, 2024
1 parent fbbe506 commit c21391f
Showing 1 changed file with 28 additions and 12 deletions.
40 changes: 28 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,41 @@ on:
- master

jobs:
tests:
name: "Python ${{ matrix.python-version }}"
test:
runs-on: "ubuntu-latest"

strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- name: Checkout repo
uses: "actions/checkout@v2"
uses: actions/checkout@v4

# Install all supported Python versions as tox will handle them from the single command
- name: Setup Python 3.8
uses: actions/setup-python@v5
with:
python-version: "3.8"

- name: Setup Python 3.9
uses: actions/setup-python@v5
with:
python-version: "3.9"

- name: Setup Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Setup Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Setup Python
uses: "actions/setup-python@v2"
- name: Setup Python 3.12
uses: actions/setup-python@v5
with:
python-version: "${{ matrix.python-version }}"
python-version: "3.12"

- name: "Install dependencies"
- name: Install dependencies
run: python -m pip install .[dev]

- name: "Run tox targets"
- name: Run tox targets
run: "python -m tox"

0 comments on commit c21391f

Please sign in to comment.