Skip to content

Commit

Permalink
Add pytest actions
Browse files Browse the repository at this point in the history
  • Loading branch information
redur committed Apr 4, 2024
1 parent f3cafe1 commit 93dc61a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.10.14
- name: Install dependencies
run: |
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
bash Miniforge3-$(uname)-$(uname -m).sh
conda env create -f environment-dev.yml
- name: Test with pytest
run: |
conda install pytest-cov
pytest --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html

0 comments on commit 93dc61a

Please sign in to comment.