Skip to content

Attempt to also run CI for beartype prerelease #721

Attempt to also run CI for beartype prerelease

Attempt to also run CI for beartype prerelease #721

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
value:
- python-version: 3.8
tag: 3.8
prerelease-beartype: false
- python-version: 3.9
tag: 3.9
prerelease-beartype: false
- python-version: "3.10"
tag: "3.10"
prerelease-beartype: false
- python-version: "3.11"
tag: "3.11"
prerelease-beartype: false
- python-version: "3.11"
tag: "3.11-pre-beartype"
prerelease-beartype: true
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.value.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.value.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade --no-cache-dir -e '.[dev]'
${{ matrix.value.prerelease_beartype }} && pip install --upgrade --pre beartype
- name: Test linter assertions
run: |
python check_linter_assertions.py tests/typechecked
- name: Run tests
run: |
PRAGMA_VERSION=`python -c "import sys; print('.'.join(map(str, sys.version_info[:2])))"` \
pytest -v --cov=plum --cov-report term-missing
- name: Coveralls parallel
uses: coverallsapp/github-action@v2
with:
flag-name: run-${{ matrix.value.tag }}
parallel: true
finish:
name: Finish coverage
needs: test
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Coveralls finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true