Skip to content

2.4.1

2.4.1 #248

Workflow file for this run

name: CI
on:
push:
paths-ignore:
- "docs/**"
- "*.md"
pull_request:
paths-ignore:
- "docs/**"
- "*.md"
workflow_dispatch:
jobs:
test:
# We want to run on external PRs, but not on our own internal PRs as they'll be run
# by the push to the branch. Without this if check, checks are duplicated since
# internal PRs match both the push and pull_request events.
if:
github.event_name == 'push' || github.event.pull_request.head.repo.full_name !=
github.repository
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.9, "3.10", "3.11"]
os: [ubuntu-latest, windows-latest] # mac breaks with 3.11
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install poetry
shell: bash
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: poetry
# key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
run: poetry install --with=dev
- name: Unit tests
run: poetry run pytest -vvv --cov=tryceratops --cov-report=xml
- name: Lint
uses: pre-commit/[email protected]
# TODO: Set up code coverage