-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.13 KB
/
python-package.yml
File metadata and controls
47 lines (40 loc) · 1.13 KB
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
42
43
44
45
46
47
name: Tests
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- python-version: "3.8"
tox-env: "py38"
- python-version: "3.11"
tox-env: "py311"
- python-version: "3.14"
tox-env: "py314"
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install tox
run: |
python -m pip install --upgrade pip
python -m pip install "tox>=4"
- name: Run tests
run: |
tox -e ${{ matrix.tox-env }} -- --cov=redisgraph --cov-branch --cov-report=xml --cov-report=term-missing:skip-covered
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
flags: ${{ matrix.tox-env }}
fail_ci_if_error: true