-
Notifications
You must be signed in to change notification settings - Fork 12
54 lines (49 loc) · 1.28 KB
/
tests.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
50
51
52
53
54
name: tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: "ubuntu-latest"
strategy:
matrix:
include:
- python: "3.7"
env: py37-fastapi68
- python: "3.8"
env: py38-fastapi68
- python: "3.10"
env: py310-fastapi68
- python: "3.11"
env: py311-fastapi68
- python: "3.7"
env: py37-fastapi84
- python: "3.9"
env: py39-fastapi84
- python: "3.10"
env: py310-fastapi84
- python: "3.11"
env: py311-fastapi84
- python: "3.7"
env: py37-fastapi100
- python: "3.9"
env: py39-fastapi100
- python: "3.10"
env: py310-fastapi100
- python: "3.11"
env: py311-fastapi100
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
pip install --upgrade pip
sh build.sh
pip install tox tox-gh-actions
- name: Run tests using tox
run: tox -e ${{ matrix.env }}