Fix README layout #33
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 | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [3.8, 3.9] | |
# python-version: [3.8] | |
# os: [ubuntu-latest, macOS-latest, windows-latest] | |
os: [ubuntu-latest, macOS-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
$CONDA/bin/conda config --env --append channels conda-forge | |
$CONDA/bin/conda env update --file requirements.txt --name base | |
$CONDA/bin/conda install pytest-cov | |
$CONDA/bin/python -m pip install --upgrade pip | |
$CONDA/bin/pip install -e . | |
- name: Unit tests | |
run: | | |
$CONDA/bin/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 | |