-
Notifications
You must be signed in to change notification settings - Fork 14
43 lines (41 loc) · 1018 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
38
39
40
41
42
43
name: CI
on:
pull_request:
push:
branches:
- "master"
tags:
- "[0-9].[0-9].[0-9]"
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: pre-commit/action@v3.0.0
tests:
runs-on: ${{ matrix.machine }}
strategy:
matrix:
include:
- python-version: "3.6"
machine: ubuntu-20.04
- python-version: "3.7"
machine: ubuntu-22.04
- python-version: "3.8"
machine: ubuntu-22.04
- python-version: "3.9"
machine: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"
- name: Install tox
run: python -m pip install tox tox-gh-actions
- name: Run tox
run: python -m tox
- name: Coveralls
run: |
python -m pip install codecov
codecov