Skip to content

GitHub Action to run Pytest #2

GitHub Action to run Pytest

GitHub Action to run Pytest #2

Workflow file for this run

name: Run Tests with Pytest
on:
pull_request:
branches: [main]
jobs:
create-environment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v2.0.3
with:
generate-run-shell: true
environment-name: test-env
create-args: >-
python=3.10
pytest
- shell: micromamba-shell {0}
run: |
pytest --version