Skip to content

matrix

matrix #79

Workflow file for this run

name: "Testing"

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

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: cases-matrix
on:
push:
branches:
- main
pull_request:
branches:
- main
types:
- opened
- synchronize
workflow_dispatch:
jobs:
cases-matrix:
strategy:
matrix:
python: ["3.6", "3.7", "3.8", "3.9", "3.10"]
os: [ubuntu-latest, windows-latest, macos-latest]
build:
name: Install and test package on ${{ matrix.os }} for Python ${{ matrix.python }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install package [pip]
run: |
python -m pip install --upgrade pip
pip install .[test]
- name: Run tests with Pytest
run: |
coverage run -m pytest
- name: Coverage
run: |
coverage report
coverage json
- name: Metadata check
run: |
python .github/scripts/metadata_checker
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}