Skip to content

Merge branch 'master' into fix_test_transforms3d_execuction #275

Merge branch 'master' into fix_test_transforms3d_execuction

Merge branch 'master' into fix_test_transforms3d_execuction #275

Workflow file for this run

Check failure on line 1 in .github/workflows/master.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/master.yml

Invalid workflow file

Invalid `steps` value - steps should be list of `uses` or `run` items
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: build
on:
push:
branches: [ master, future ]
pull_request:
jobs:
# Run tests on different versions of python
unittest:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
# python-version: [3.7, 3.8, 3.9, '3.10', 3.11]
python-version: [3.7, 3.8, 3.9, 3.11]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Test with pytest
env:
MPLBACKEND: TkAgg
run: |
pytest -s --ignore=W605 --timeout=50 --timeout_method=thread
codecov:
# If all tests pass:
# Run coverage and upload to codecov
needs: unittest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Run coverage
run: |
coverage run --omit='tests/*.py,tests/base/*.py' -m pytest
coverage report
coverage xml
- name: upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
sphinx:
# If the above worked:
# Build docs and upload to GH Pages
needs: unittest
runs-on: ubuntu-latest
steps:
uses: ./.github/workflows/sphinx.yml
if: ${{ github.event_name != 'pull_request' }}