Skip to content

Commit

Permalink
Fix Prefect tests (#1524)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-S-Rosen authored Jan 12, 2024
1 parent 53699de commit a59aed2
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,46 @@ jobs:
path: "coverage.xml"
retention-days: 1

tests-engines2:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
wflow_engine: [prefect]

defaults:
run:
shell: bash -l {0}

steps:
- name: Check out repo
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
cache-dependency-path: tests/requirements**.txt

- name: Install pip packages
run: |
pip install -r tests/requirements.txt
pip install -r tests/requirements-${{ matrix.wflow_engine }}.txt
pip install -r tests/requirements-phonopy.txt
pip install .[dev]
pip install starlette==0.32.0
- name: Run tests with pytest
run: pytest --durations=10 tests/${{ matrix.wflow_engine }} --cov=quacc --cov-report=xml

- name: Upload code coverage report to Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }} ${{ matrix.wflow_engine }} coverage report
path: "coverage.xml"
retention-days: 1

tests-psi4:
strategy:
fail-fast: true
Expand Down
2 changes: 1 addition & 1 deletion tests/requirements-prefect.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
dask-jobqueue==0.8.2
prefect==2.14.14
prefect-dask==0.2.6
dask-jobqueue==0.8.2

0 comments on commit a59aed2

Please sign in to comment.