-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.21 KB
/
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
44
45
46
47
48
49
name: Tox and Trunk
on:
push:
branches: ["develop"]
pull_request:
branches: ["develop"]
env:
MYSQL_HOST: ${{ vars.MYSQL_HOST }}
MYSQL_USER: ${{ vars.MYSQL_USER }}
MYSQL_PASSWORD: ${{ vars.MYSQL_PASSWORD }}
MYSQL_PORT: ${{ vars.MYSQL_PORT }}
MYSQL_DBNAME: ${{ vars.MYSQL_DBNAME }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@master
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@master
with:
python-version: ${{ matrix.python-version }}
- name: Tox
run: |
python -m pip install --upgrade pip
python -m pip install -U tox
tox
- name: Trunk Check
uses: trunk-io/trunk-action@main
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@main
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./
env_vars: OS,PYTHON
fail_ci_if_error: true
files: ./coverage.xml
name: codecov-bug-tracker
verbose: true