Skip to content

Commit

Permalink
Update pythonpackage.yml to use poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
FuzzyReality committed Nov 17, 2023
1 parent 288bbbc commit 9fd170b
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,32 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12", "3.x"] # pythonpublish.yml uses "3.x".

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install poetry
run: |
pipx install poetry==${{ POETRY_VERSION }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
poetry install
- name: Lint
run: |
black --check .
mypy .
poetry run black --check .
poetry run mypy .
- name: Test with pytest
run: |
pytest
poetry run pytest
env:
ENVIRONMENT: local

0 comments on commit 9fd170b

Please sign in to comment.