Move PyffException. #49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
name: Python package | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-24.04", "ubuntu-22.04"] | |
python: ["3.9", "3.10", "3.11", "3.12"] #Disable 3.13 until https://github.com/TheKevJames/coveralls-python/issues/549 is fixed | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Lint with Ruff | |
run: | | |
pip install ruff | |
ruff check --output-format=github . | |
continue-on-error: true | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
if [ -f test_requirements.txt ]; then pip install -r test_requirements.txt; fi | |
if [ "${{ matrix.python-version }}" != "3.13" ]; then # workaround for TheKevJames/coveralls-python#523 | |
pip install coveralls | |
fi | |
pip install mypy | |
python -m pip install --editable . | |
- name: Run tests | |
run: | | |
if [ "${{ matrix.python-version }}" == "3.13" ]; then # workaround for TheKevJames/coveralls-python#523 | |
python -m coverage run -m pytest --no-cov src | |
else | |
python -m coverage erase | |
python -m coverage run -m pytest --cov=src/pyff | |
mv .coverage .coverage.1 | |
python -m coverage combine | |
fi | |
#make typecheck | |