Skip to content

add testing action

add testing action #2

Workflow file for this run

name: Testing with PyTest
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Conda environment with Micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: "environment-cpu.yml"
init-shell: >-
bash
zsh
cache-environment: true
post-cleanup: "all"
- name: Test with Pytest.
shell: bash -l {0}
run: |
micromamba activate TODO_package_name
python -m pip install pytest pytest-cov
pytest --cov=TODO_package_name/ tests/