Skip to content

Commit

Permalink
CI: make sure the tests matrix depends on linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptiste Jonglez authored and zorun committed Mar 25, 2024
1 parent 843f2df commit 510c8db
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint & Docs
name: Check doc

on:
push:
Expand All @@ -7,22 +7,6 @@ on:
branches: [ 'master', 'stable-*' ]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: 'pip'
cache-dependency-path: '**/pyproject.toml'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox
- name: Run Lint
run: tox -e lint

test_doc:
runs-on: ubuntu-latest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Unit tests
name: Lint & unit tests

on:
push:
Expand All @@ -7,10 +7,27 @@ on:
branches: [ 'master', 'stable-*' ]

jobs:
test:

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: 'pip'
cache-dependency-path: '**/pyproject.toml'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox
- name: Run Lint
run: tox -e lint

test:
# Dependency on linting to avoid running our expensive matrix test for nothing
needs: lint
runs-on: ubuntu-latest
# Use postgresql and MariaDB versions of Debian bookworm
services:
postgres:
Expand Down

0 comments on commit 510c8db

Please sign in to comment.