Skip to content

Commit

Permalink
fix pytest action$
Browse files Browse the repository at this point in the history
  • Loading branch information
redur committed Apr 4, 2024
1 parent 93dc61a commit 8f8ab14
Showing 1 changed file with 25 additions and 15 deletions.
40 changes: 25 additions & 15 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
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
name: pytest

on:
pull_request:
push:
branches: [main]

jobs:
pre-commit:
runs-on: ubuntu-latest
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 8f8ab14

Please sign in to comment.