-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (39 loc) · 1.05 KB
/
lib-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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