Skip to content

Commit

Permalink
Split out linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamghill committed Jul 28, 2024
1 parent 5266fa8 commit 043e6c3
Showing 1 changed file with 33 additions and 7 deletions.
40 changes: 33 additions & 7 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,25 @@ on:
workflow_dispatch:

jobs:
test:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", "3.11"]

steps:
- uses: actions/checkout@v2.3.4
- uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2.1.4
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"

- name: Install Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.6.1
run: pipx install poetry

- name: Set Poetry config
run: |
Expand All @@ -35,8 +34,35 @@ jobs:
- name: ruff check
run: poetry run ruff check .

- name: mypy
- name: mypy check
run: poetry run mypy django_unicorn

test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"

- name: Install Poetry
run: pipx install poetry

- name: Set Poetry config
run: |
poetry config virtualenvs.path ~/.virtualenvs${{ matrix.python-version }}
- name: Install dependencies
run: poetry install -E minify

- name: Run all tests
run: poetry run nox

0 comments on commit 043e6c3

Please sign in to comment.