-
Notifications
You must be signed in to change notification settings - Fork 169
37 lines (34 loc) · 892 Bytes
/
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
on:
push:
branches:
- main
pull_request:
name: CI
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- 'pypy3.10'
coverage:
- '6.0'
- '7.0'
- '7.5'
name: Python ${{ matrix.python }} on coverage ${{ matrix.coverage }}
steps:
- uses: actions/checkout@v4
- name: Setup python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: pip install setuptools coverage==${{ matrix.coverage}} && pip install . && pip install -r requirements-dev.txt
- name: Run tests
run: python -m pytest
- name: Run coverage-badge on own test coverage
run: python -m coverage_badge