-
Notifications
You must be signed in to change notification settings - Fork 49
46 lines (44 loc) · 1.08 KB
/
tox-checkbox-ng.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
40
41
42
43
44
45
46
name: Test checkbox-ng with tox
on:
push:
branches: [ main ]
paths:
- checkbox-ng/**
pull_request:
branches: [ main ]
paths:
- checkbox-ng/**
workflow_dispatch:
jobs:
build:
defaults:
run:
working-directory: checkbox-ng
runs-on: ubuntu-20.04
strategy:
matrix:
python: ["3.5", "3.6", "3.8", "3.10"]
include:
- python: "3.5"
tox_env_name: "py35"
- python: "3.6"
tox_env_name: "py36"
- python: "3.8"
tox_env_name: "py38"
- python: "3.10"
tox_env_name: "py310"
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install tox
run: pip install tox
- name: Run tox
run: tox -e${{ matrix.tox_env_name }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: checkbox-ng