-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (36 loc) · 1.25 KB
/
pr.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: PR
on:
pull_request:
permissions: read-all
env:
MIN_PYTHON_VERSION: "3.7"
jobs:
pre-commit:
uses: bridgecrewio/gha-reusable-workflows/.github/workflows/pre-commit.yaml@main
tests:
needs: pre-commit
name: ${{ matrix.os }} / ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
experimental: [false]
include:
- os: ubuntu-latest
python-version: "3.12-dev"
experimental: true
fail-fast: false
continue-on-error: ${{ matrix.experimental }}
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install -r requirements-dev.txt
- name: Install pytest plugin
run: pip install pytest-github-actions-annotate-failures
- name: Run pytest
run: pytest -s -v --capture sys --cov bc_jsonpath_ng --cov-report term-missing