Skip to content

Commit

Permalink
ci: Add mypy check to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nvictus committed Jul 1, 2023
1 parent 57b714b commit 9944916
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,16 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: "3.x"
- run: |
- name: Install package and dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[test]
- name: Lint with ruff
run: |
ruff pqdict tests
- name: Static type check with mypy
run: |
mypy pqdict tests
Test:
runs-on: ubuntu-20.04 # py36 is EOL on ubuntu-latest
Expand All @@ -36,11 +42,10 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
- name: Install package and dependencies
run: |
python -m pip install --upgrade pip
- name: Install package
run: python -m pip install -e .[test]
python -m pip install -e .[test]
- name: Test with pytest
run: |
pytest

0 comments on commit 9944916

Please sign in to comment.