-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (47 loc) · 1.05 KB
/
app.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
47
48
49
50
51
name: sqlbind
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- python: "3.6"
os: "ubuntu-20.04"
- python: "3.8"
os: "ubuntu-20.04"
- python: "3.12"
os: "ubuntu-22.04"
steps:
- uses: actions/checkout@v4
- name: prepare
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: deps
run: |
pip install -r requirements-test.txt
- name: test
run: python -m coverage run -m pytest
- name: coverage
run: python -m coverage report -m
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: prepare
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: deps
run: pip install -r requirements-lint.txt
- name: black
run: black --check .
- name: mypy
run: mypy --strict sqlbind