Update README.md #134
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] | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | |
python-version: ["3.9", "3.10", "3.11"] | |
name: Test (${{ matrix.python-version }}, ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniforge-variant: Mambaforge | |
channels: conda-forge | |
activate-environment: cutde | |
environment-file: environment.yml | |
python-version: ${{ matrix.python-version }} | |
- name: Install cutde | |
run: | | |
pip install --no-use-pep517 --no-deps --disable-pip-version-check -e . | |
- name: Lint with flake8 | |
run: | | |
flake8 . | |
- name: Check formatting with black | |
run: | | |
black --check . | |
- name: Check import ordering with isort | |
run: | | |
isort --check . | |
- name: Test | |
run: | | |
CFLAGS='-stdlib=libc++' pytest --runslow --cov=./ --cov-report=xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
fail_ci_if_error: false |