Skip to content

GitHub Action to run Pytest #3

GitHub Action to run Pytest

GitHub Action to run Pytest #3

Workflow file for this run

name: Run Tests with Pytest
on:
pull_request:
branches: [main]
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up micromamba environment
uses: mamba-org/[email protected]
with:
generate-run-shell: true
environment-file: test_environment.yml
condarc: |
channels:
- conda-forge

Check failure on line 19 in .github/workflows/run-pytest.yml

View workflow run for this annotation

GitHub Actions / Run Tests with Pytest

Invalid workflow file

The workflow is not valid. .github/workflows/run-pytest.yml (Line: 19, Col: 11): A sequence was not expected
- name: Check packages
shell: micromamba-shell {0}
run: |
python --version
pytest --version
- name: Run tests
shell: micromamba-shell {0}
run: |
pytest