docs: don't try to build all the doc types #430
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Suite | |
on: [push, pull_request] | |
jobs: | |
tests: | |
name: Test Suite | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -l {0} | |
env: | |
ENV_NAME: testing | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
python-version: [3.9, "3.10"] | |
steps: | |
- uses: actions/checkout@master | |
with: | |
fetch-depth: 1 | |
- name: Setup Miniconda | |
uses: conda-incubator/[email protected] | |
with: | |
auto-update-conda: true | |
mamba-version: "*" | |
channels: conda-forge,defaults | |
channel-priority: true | |
python-version: ${{ matrix.python-version }} | |
environment-file: ci/${{ env.ENV_NAME }}.yaml | |
activate-environment: ${{ env.ENV_NAME }} | |
- name: Conda Info | |
run: | | |
conda info | |
python --version | |
- name: Install Test Deps | |
run: | | |
pip install .[test] | |
conda list | |
- name: Run Tests | |
run: | | |
python -m pytest --cov=py21cmsense --cov-config=.coveragerc --cov-report xml:./coverage.xml --junitxml=test-reports/xunit.xml | |
- uses: codecov/codecov-action@v2 | |
if: success() | |
with: | |
file: ./coverage.xml #optional |