Skip to content

Commit

Permalink
reduce required CI ressources
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Müller <[email protected]>
  • Loading branch information
marcelmbn committed Aug 11, 2024
1 parent 29853b2 commit fa62e49
Showing 1 changed file with 6 additions and 25 deletions.
31 changes: 6 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ on:
- "*.rst"
workflow_dispatch:
jobs:
# Run linting with ruff
ruff:
# Run linting and formatting with and static type checking with mypy
static-tests:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.12"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
Expand All @@ -30,38 +30,19 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install ruff
- name: Install mypy
run: |
python -m pip install --upgrade pip
pip install ruff==0.5.7
pip install -e ".[dev]"
- name: Run ruff linting
run: ruff check --no-fix
- name: Run ruff format
run: ruff format --check
# Run static type checking with mypy
mypy:
needs: ruff
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install mypy
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Run mypy
run: mypy .
# Run unittests with tox
tox:
needs: mypy
needs: static-tests
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
Expand Down

0 comments on commit fa62e49

Please sign in to comment.