Skip to content

Commit

Permalink
Updated CI to use pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinbjornt committed Sep 18, 2023
1 parent 345ad12 commit 0c4c63a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@ name: tests

on:
push:
branches: [ master ]
branches:
- '*'
pull_request:
branches: [ master ]
branches:
- '*'

jobs:
build:

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

steps:
- uses: actions/checkout@v2
Expand All @@ -22,13 +24,14 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel setuptools pytest types-setuptools mypy
python -m pip install ".[dev]"
- name: Run mypy
run: |
mypy iceaddr/*.py
python3 -m pip install types-setuptools
mypy src/iceaddr/*.py
- name: Test with pytest
run: |
python -m pytest
python -m pytest -vvv
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ section-order = [

[tool.ruff.isort.sections]
# Have typing libraries above other imports
typehints = ["typing", "typing_extensions", "types"]
typehints = ["typing", "typing_extensions", "types", "types-setuptools"]

# *** Build system configuration ***

Expand Down

0 comments on commit 0c4c63a

Please sign in to comment.