Skip to content

Commit

Permalink
Fixed linter workflow to use tox -e lint (to CI check doc linting)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nusnus committed Jan 14, 2024
1 parent a188a20 commit 063eb28
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,18 @@ name: Linter
on: [pull_request]

jobs:
linter:
check:
runs-on: ubuntu-latest
strategy:
matrix:
check: [lint, mypy]
steps:

- name: Checkout branch
uses: actions/checkout@v4

- name: Run pre-commit
uses: pre-commit/action@v3.0.0

mypy:
runs-on: ubuntu-latest
steps:

- name: Checkout branch
uses: actions/checkout@v4

- name: Install apt packages
run: |
sudo apt update
sudo apt install -y libmemcached-dev
- name: Set up Python 3.12
uses: actions/setup-python@v5
Expand All @@ -38,8 +29,8 @@ jobs:
- name: Install Poetry
uses: snok/install-poetry@v1.3.4

- name: Install tox and mypy
run: poetry install --with ci
- name: Install CI dependencies
run: poetry install --only ci

- name: Run mypy
run: tox -e mypy
- name: Run check
run: tox -e ${{ matrix.check }}

0 comments on commit 063eb28

Please sign in to comment.