Skip to content

WIP: CI: Optimize test matrix #50

WIP: CI: Optimize test matrix

WIP: CI: Optimize test matrix #50

Workflow file for this run

name: Run tests
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- python-version: '2.7'
os: macos-12
# python-version:
# - '2.7'
# - '3.6'
# - '3.7'
# - '3.8'
# - '3.9'
# - '3.10'
# - '3.11'
# - '3.12'
# os:
# - ubuntu-latest
# - macos-latest
# - windows-latest
steps:
- uses: actions/checkout@v3
- uses: MatteoH2O1999/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
allow-build: info
cache-build: true
- name: Install test runner
run: |
pip install --upgrade pip wheel setuptools
pip install pytest-cov
- name: Run tests
run: |
pytest --cov -- test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3