94 review files in napari folder #137
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: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
name: ${{ matrix.os }} py${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10"] | |
os: [ubuntu-latest] | |
include: | |
- os: macos-latest | |
python-version: "3.10" | |
- os: windows-latest | |
python-version: "3.10" | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
- name: Cache tox | |
uses: actions/cache@v3 | |
with: | |
path: .tox | |
key: test-${{ hashFiles('pyproject.toml') }} | |
- name: Set up python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "pip" | |
cache-dependency-path: "pyproject.toml" | |
# these libraries enable testing on Qt on linux | |
- uses: tlambert03/setup-qt-libs@v1.4 | |
- name: Install dependencies | |
run: python -m pip install tox tox-gh-actions | |
# this runs the platform-specific tests declared in tox.ini | |
- name: Test with tox | |
uses: aganders3/headless-gui@v1 | |
with: | |
run: python -m tox -v | |
env: | |
PLATFORM: ${{ matrix.os }} | |
- name: Coverage | |
uses: coverallsapp/github-action@v2 | |
with: | |
file: coverage.lcov |