Skip to content

Merge pull request #31 from niatimary/new-branch #46

Merge pull request #31 from niatimary/new-branch

Merge pull request #31 from niatimary/new-branch #46

Workflow file for this run

name: run pytest
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout files in repo
uses: actions/checkout@v3
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: cat
environment-file: environment.yml
python-version: "3.12.9"
auto-activate-base: false
- name: Conda list
run: |
conda activate cat
conda list
- name: Test with pytest
run: |
conda activate cat
pip install pytest-cov
pytest pyCatSim/tests --cov --cov-config=.coveragerc -svv -W ignore::UserWarning