-
Notifications
You must be signed in to change notification settings - Fork 7
39 lines (39 loc) · 1.87 KB
/
ci.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
name: CI
on: [push, pull_request]
jobs:
build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
python-version: [3.8, 3.9, '3.10', '3.11', '3.12', pypy-3.9-v7.3.15]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: setup.cfg
- run: pip install .[test]
# Print the ijson backend, to make any errors easier to debug.
- run: python -c "import ijson; print(ijson.backend)"
# "orjson does not support PyPy" and fails to install. https://pypi.org/project/orjson/
# DeprecationWarning https://github.com/requests-cache/requests-cache/issues/845
- if: matrix.python-version != 'pypy-3.9-v7.3.15'
name: Test
env:
PYTHONUTF8: 1
shell: bash
run: |
coverage run --append --source=ocdskit -m pytest -W error -W default::ocdsmerge.exceptions.DuplicateIdValueWarning -W ignore::DeprecationWarning:requests_cache.models.response
pip install orjson
coverage run --append --source=ocdskit -m pytest -W error -W default::ocdsmerge.exceptions.DuplicateIdValueWarning -W ignore::DeprecationWarning:requests_cache.models.response
pip uninstall -y orjson
- if: matrix.python-version == 'pypy-3.9-v7.3.15'
name: Test
# DeprecationWarning https://github.com/requests-cache/requests-cache/issues/845
run: pytest -W error -W default::ocdsmerge.exceptions.DuplicateIdValueWarning -W ignore::DeprecationWarning:requests_cache.models.response --cov ocdskit
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls --service=github