-
Notifications
You must be signed in to change notification settings - Fork 389
30 lines (29 loc) · 873 Bytes
/
build.yml
File metadata and controls
30 lines (29 loc) · 873 Bytes
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
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
name: Python ${{ matrix.version }}
strategy:
matrix:
version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install pytest mock pytest-cov setuptools
python setup.py install
pytest --cov=./ --cov-report=xml
- name: Run Tests
run: python -m pytest -v
- name: upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
name: codecov-umbrella
fail_ci_if_error: false