-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 1 KB
/
run-tests.yaml
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: Tests
on: [pull_request]
permissions:
contents: read
pull-requests: write
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 4
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
os: ["ubuntu-latest"]
steps:
- name: Checkout repo
uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
if: steps.cache-venv.outputs.cache-hit != 'true'
run: pip install ".[test]"
- name: Test with pytest
run: python -m pytest --junitxml=pytest.xml --cov=merkle_zeppelin | tee pytest-result.txt
- name: Make comment with test coverage
uses: MishaKav/[email protected]
if: github.event_name != 'dependabot[bot]'
with:
pytest-coverage-path: ./pytest-result.txt
junitxml-path: ./pytest.xml