Skip to content

Commit

Permalink
try to split jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
gyst committed Oct 25, 2024
1 parent 4a32002 commit cf0706c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 16 deletions.
45 changes: 31 additions & 14 deletions .github/workflows/plone-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,36 @@ on:
branches: [main]

jobs:
build:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
action-version: 'lint'
steps:
- name: Git checkout
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Black-Check
run: |
tox -r -e black-check
- name: Lint with tox
run: |
tox -r
build_and_test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down Expand Up @@ -66,22 +95,10 @@ jobs:
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Black-Check
run: |
tox -r -e black-check
- name: Lint with tox
run: |
tox -r
env:
MATCH_ACTION_ENV: lint
PYTHON_VERSION: ${{ matrix.plone-version }}

- name: Test with tox
run: |
tox -r
env:
MATCH_ACTION_ENV: ${{ matrix.plone-version }}
PYTHON_VERSION: ${{ matrix.plone-version }}
PLONE_VERSION: ${{ matrix.plone-version }}

# To add coverage, see https://hynek.me/articles/ditch-codecov-python/
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ python =


[gh-actions:env]
MATCH_ACTION_ENV =
lint: lint
PLONE_VERSION =
Plone52: Plone52
Plone60: Plone60

Expand Down

0 comments on commit cf0706c

Please sign in to comment.