Skip to content

CI

CI #430

Workflow file for this run

name: CI
on:
schedule:
- cron: 00 00 * * 1 # Run every Monday at 00:00
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python: ['3.8', '3.10', '3.11', '3.12']
os: [ubuntu-latest]
slepc: ['noslepc']
include:
- os: ubuntu-latest
python: '3.9'
slepc: 'slepc'
- os: macos-latest
python: '3.10'
slepc: 'slepc'
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
pip install tox codecov
- name: Test
run: |
tox -e py${{ matrix.python }}-${{ matrix.slepc }} -vv
env:
PLATFORM: ${{ matrix.os }}
- name: Upload coverage
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
flags: unittests
name: ${{ matrix.os }}-${{ matrix.python }}-${{ matrix.slepc }}
env_vars: OS,PYTHON
fail_ci_if_error: false
verbose: true