Skip to content

Commit

Permalink
added poetry tests
Browse files Browse the repository at this point in the history
Signed-off-by: Melvin Strobl <[email protected]>
  • Loading branch information
Melvin Strobl committed Sep 23, 2024
1 parent 4576a89 commit 4c20f8c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python 3.11
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: 'poetry' # caching pip dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest pennylane
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
run: poetry install
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python 3.11
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: 'poetry' # caching pip dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pennylane
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
run: poetry install
- name: Test with pytest
run: |
pytest
run: poetry run pytest

0 comments on commit 4c20f8c

Please sign in to comment.