Skip to content

Commit

Permalink
Reintroduced poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanHydrogen committed Apr 19, 2024
1 parent 83bb718 commit 3b03a50
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,20 @@ jobs:
- name: Check out repository code
uses: actions/checkout@v4

- name: Install poetry
run: pipx install poetry

- name: Install maturin
run: pipx install maturin

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
cache: 'poetry'

- run: maturin develop --release --all-features
- run: pytest -v
- run: poetry run maturin develop --release --all-features
- run: poetry run pytest -v

mypy:
runs-on: ubuntu-latest
Expand All @@ -30,14 +33,17 @@ jobs:
- name: Check out repository code
uses: actions/checkout@v4

- name: Install poetry
run: pipx install poetry

- name: Install maturin
run: pipx install maturin

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
cache: 'poetry'

- run: maturin develop --release --all-features
- run: mypy ./pyobs_cloudcover
- run: poetry run maturin develop --release --all-features
- run: poetry run mypy ./pyobs_cloudcover

0 comments on commit 3b03a50

Please sign in to comment.