-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (45 loc) · 1.11 KB
/
continuous-integration.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
name: CI
on:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- '*'
jobs:
python-tests:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
fail-fast: false
matrix:
python-version: ["3.9", "3.10"]
steps:
- uses: actions/checkout@master
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt install build-essential libsystemd-dev libpython3-dev
python -m pip install --upgrade pip
python -m pip install tox==3.28.0 tox-envfile
docker pull mongo:4.2.16
docker pull postgres:13
- name: Test with tox
run: tox -e test
- name: Check style
run: tox -e style
- name: Upload coverage to Codecov
if: matrix.python-version == 3.10
run: bash <(curl -s https://codecov.io/bash)
docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: |
make init-env
docker-compose build