Skip to content

check out repository #8

check out repository

check out repository #8

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
schedule:
- cron: '0 2 * * 1' # run weekly
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.11', '3.12', '3.x']
os: [ macos-latest, ubuntu-latest, windows-latest ]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install orthority>=0.6.0 pytest pytest-cov
python -m pip list
- name: Test with pytest
timeout-minutes: 2
run: |
python -m pytest -vv --cov=plan_rect --cov-report=term-missing --cov-report=xml:coverage.xml ./tests