Skip to content

meta

meta #250

Workflow file for this run

name: pytest
on:
push:
branches:
- '*'
jobs:
pytest:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12, ubuntu-22.04]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup Miniconda & Environment
uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.11
auto-update-conda: true
activate-environment: moranpycess-dev
environment-file: environment.yml
auto-activate-base: false
- name: Conda Info
shell: bash -l {0}
run: |
conda info -a
conda list
- name: Unit-Test + Coverage
shell: bash -l {0}
run: |
coverage run -m pytest tests/unit/Individual.py tests/unit/MoranProcess.py tests/unit/MoranProcess2D.py tests/unit/MoranProcess3D.py
coverage report -m
- name: Submit Report to Codecov
shell: bash -l {0}
run: |
CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }}
bash <(curl -s https://codecov.io/bash)