Fix README layout (#32) #46
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 | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -el {0} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.9", "3.10"] | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up conda environment | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
auto-update-conda: true | |
activate-environment: test-env | |
auto-activate-base: false | |
- name: Display environment details | |
run: | | |
conda info | |
- name: Install dependencies | |
run: | | |
conda install -c conda-forge pytest pytest-cov | |
conda install -c conda-forge pyfftw | |
python -m pip install --upgrade pip | |
pip install setuptools | |
pip install -r requirements.txt | |
pip install -e . | |
- name: Unit tests | |
run: | | |
pytest --cov=sporco --cov-report xml | |
- name: Upload coverage to codecov | |
if: matrix.os == 'ubuntu-latest' | |
uses: codecov/codecov-action@v3 | |
with: | |
env_vars: OS,PYTHON | |
fail_ci_if_error: false | |
files: coverage.xml | |
flags: unittests | |
name: codecov-umbrella | |
verbose: true | |