Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix pytest only running on 3.10 #777

Merged
merged 5 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 20 additions & 17 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ jobs:
- "3.11"
- "3.10"
- 3.9
- 3.8
os:
- ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install Poetry
run: |
pipx install poetry
- 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 Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install package
run: |
poetry install --no-interaction
Expand All @@ -45,6 +45,7 @@ jobs:
git config --global init.defaultBranch "main"
- name: Pytest
run: |
poetry run python --version
poetry run coverage run -m pytest --benchmark-autosave -vv
poetry run coverage xml
poetry run coverage lcov
Expand All @@ -64,14 +65,15 @@ jobs:
needs: [ pytest ]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install Poetry
run: |
pipx install poetry
- name: Set up Python 3.9
uses: actions/setup-python@v3
uses: snok/install-poetry@v1
with:
python-version: "3.9"
cache: 'poetry'
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install package
run: |
poetry install
Expand All @@ -89,14 +91,15 @@ jobs:
needs: [ pytest, nbtest ]
steps:
- uses: actions/checkout@v2
- name: Install Poetry
run: |
pipx install poetry
- name: Set up Python 3.11
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: 'poetry'
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install package
run: |
sudo apt install pandoc
Expand Down
Loading
Loading