-
Notifications
You must be signed in to change notification settings - Fork 4
32 lines (31 loc) 路 784 Bytes
/
Copy pathpytest.yaml
File metadata and controls
32 lines (31 loc) 路 784 Bytes
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
name: Test
on:
- push
jobs:
test:
name: Test on Python ${{ matrix.python-version }} @ ubuntu-latest
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.6"
- "3.7"
- "3.8"
services:
mongodb:
image: mongo:latest
ports:
- 27017:27017
steps:
- uses: actions/checkout@master
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install requirements
run: python -m pip install -r requirements.txt
- name: Install test requirements
run: python -m pip install -r requirements-test.txt
- name: Test
run: pytest -sv .