Fix codecov #139
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: Tests | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
pre-commit: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
- name: install clang-format | |
run: | | |
pip install clang-format==6.0.1 | |
- uses: pre-commit/[email protected] | |
test: | |
name: Python | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python: [ 3.7, 3.11 ] | |
os: [ macos-latest, ubuntu-latest, windows-latest ] | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{matrix.python}} | |
- name: Install pip deps | |
run: pip install -r python/requirements/CI/tests/requirements.txt | |
- name: Build module | |
working-directory: python | |
run: | | |
python setup.py build_ext --inplace | |
- name: Run tests | |
working-directory: python | |
run: | | |
python -m pytest tests |