-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (39 loc) · 1.04 KB
/
build.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
name: build
on:
push:
pull_request:
# build weekly at 4:00 AM UTC
schedule:
- cron: '0 4 * * 1'
jobs:
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- run: python -m pip install tox
- run: python -m tox -e mypy
test:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.7", "3.8", "3.9", "3.10"]
include:
- os: macos-latest
python-version: "3.10"
name: "py${{ matrix.python-version }} on ${{ matrix.os }} "
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: start redis
if: runner.os == 'Linux'
uses: ./.github/actions/redis
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: install tox
run: python -m pip install tox
- name: test
run: python -m tox -e py,py-nodeps -- --cov-report="term-missing:skip-covered"