Skip to content

Move a try/except to a more outer scope #356

Move a try/except to a more outer scope

Move a try/except to a more outer scope #356

Workflow file for this run

name: Unit tests
on: [push, pull_request]
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
include:
- python-version: "3.10"
coverage: "yes"
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-cache-${{ matrix.python-version }}-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-cache-${{ matrix.python-version }}-
${{ runner.os }}-pip-cache-
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true # TODO remove once Python 3.12 is released
- run: pip install -U pip setuptools wheel
- run: pip install -r requirements.txt
- run: pip install --no-deps -e .
if: ${{ matrix.coverage == 'yes' }}
- run: pip install --no-deps .
if: ${{ matrix.coverage != 'yes' }}
- run: pip check
- run: pytest -Werror --cov=aiokatcp --cov-branch
- run: pre-commit run --all-files
- run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ matrix.coverage == 'yes' }}