Skip to content

[pre-commit.ci] pre-commit automatically updated. #156

[pre-commit.ci] pre-commit automatically updated.

[pre-commit.ci] pre-commit automatically updated. #156

Workflow file for this run

name: Run library tests
on:
pull_request:
push:
branches: 'master'
jobs:
test:
name: Ex1 (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.10", "3.11", "3.12"]
defaults:
run:
working-directory: ./lib
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -e .
pip install -e .[tests,pypi]
- name: Test with pytest
run: |
pytest --cov=pgfinder
- name: Determine coverage
run: |
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
- name: Checking CLI entry-point works
run: |
pip install -e .
find_pg --config pgfinder/default_config.yaml