Skip to content

Commit

Permalink
Tryout other grouping option
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaraBuettner committed Aug 13, 2024
1 parent e5e7542 commit 392cdb1
Showing 1 changed file with 24 additions and 67 deletions.
91 changes: 24 additions & 67 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,22 @@ on:
branches: [dev, master]

jobs:
linux:
name: Linux
runs-on: ubuntu-latest
build:
name: ${{ matrix.os.name }}
runs-on: ${{ matrix.os.image }}

strategy:
matrix:
os:
- {image: ubuntu-latest, name: Linux}
- {image: windows-latest, name: Windows}
- {image: macos-latest, name: macOS}
python-version: [3, 3.9, "3.10", 3.11]
exclude:
- os: {image: macos-latest, name: macOS}
python-version: 3.9
max-parallel: 4
fail-fast: false

steps:
- uses: "actions/checkout@main"
Expand All @@ -28,77 +37,25 @@ jobs:
nox --version
- name: "Run custom checks"
run: "python -m nox -s check"
env:
PLATFORM: ${{ matrix.os.image }}
- name: "Check with `black`"
run: "python -m nox -s black"
env:
PLATFORM: ${{ matrix.os.image }}
- name: "Check with `flake8`"
run: "python -m nox -s flake8"
env:
PLATFORM: ${{ matrix.os.image }}
- name: "Check with `isort`"
run: "python -m nox -s isort"
env:
PLATFORM: ${{ matrix.os.image }}
- name: "Build and check for packaging errors"
run: "python -m nox -s build"
env:
PLATFORM: ${{ matrix.os.image }}
- name: "Install the package"
run: "python -m nox -s install"

windows:
name: Windows
runs-on: windows-latest

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

steps:
- uses: "actions/checkout@main"
- uses: "actions/setup-python@main"
with:
python-version: ${{ matrix.python-version }}
- name: "Install dependencies"
run: |
python -mpip install --progress-bar=off nox
python --version
pip --version
nox --version
- name: "Run custom checks"
run: "python -m nox -s check"
- name: "Check with `black`"
run: "python -m nox -s black"
- name: "Check with `flake8`"
run: "python -m nox -s flake8"
- name: "Check with `isort`"
run: "python -m nox -s isort"
- name: "Build and check for packaging errors"
run: "python -m nox -s build"
- name: "Install the package"
run: "python -m nox -s install"

macos:
name: macOS
runs-on: macos-latest

strategy:
matrix:
python-version: [3, "3.10", 3.11] # Exclude Python 3.9 here

steps:
- uses: "actions/checkout@main"
- uses: "actions/setup-python@main"
with:
python-version: ${{ matrix.python-version }}
- name: "Install dependencies"
run: |
python -mpip install --progress-bar=off nox
python --version
pip --version
nox --version
- name: "Run custom checks"
run: "python -m nox -s check"
- name: "Check with `black`"
run: "python -m nox -s black"
- name: "Check with `flake8`"
run: "python -m nox -s flake8"
- name: "Check with `isort`"
run: "python -m nox -s isort"
- name: "Build and check for packaging errors"
run: "python -m nox -s build"
- name: "Install the package"
run: "python -m nox -s install"
env:
PLATFORM: ${{ matrix.os.image }}

0 comments on commit 392cdb1

Please sign in to comment.