Skip to content

Workflow fix 1

Workflow fix 1 #122

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Unit tests for TCRM
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
jobs:
TCRM:
name: Test TCRM
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10']
steps:
- uses: actions/checkout@v3
- name: Set up environment
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: MambaForge
python-version: ${{ matrix.python-version }}
channels: conda-forge,defaults
channel-priority: true
activate-environment: tcrm
environment-file: tcrmenv.yml
auto-activate-base: false
use-only-tar-bz2: true
- name: Test with pytest
env:
PYTHONPATH: ~/tcrm;~/tcrm/Utilities
shell: bash -l {0}
run: |
pytest -x --cov=. --cov-report xml