-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (51 loc) · 1.52 KB
/
ci.yml
File metadata and controls
55 lines (51 loc) · 1.52 KB
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
55
name: CI
on:
push:
branches: [dev, master]
jobs:
ci-docs:
runs-on: ubuntu-latest
steps:
- name: downloading last version
uses: actions/checkout@v1
- name: setting up python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: upgrade pip
run: python -m pip install --upgrade pip
- name: install package dependencies
run: pip install .
- name: install doc dependencies
run: pip install .[docs]
- name: run doc tests
run: cd docs; make html
ci-test:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
python-version: [3.7, 3.8, 3.9]
steps:
- name: downloading last version
uses: actions/checkout@v1
- name: setting up python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: upgrade pip
run: python -m pip install --upgrade pip
- name: install package dependencies
run: pip install .
- name: install test dependencies
run: pip install .[tests]
- name: run CI tests
env:
TEST_CSV: ${{ secrets.TEST_CSV }}
TEST_JSON: ${{ secrets.TEST_JSON }}
TEST_EMAIL: ${{ secrets.TEST_EMAIL }}
DEEPINT_TOKEN: ${{ secrets.DEEPINT_TOKEN }}
DEEPINT_ORGANIZATION: ${{ secrets.DEEPINT_ORGANIZATION }}
TEST_EXTERNAL_SOURCE_URL: ${{ secrets.TEST_EXTERNAL_SOURCE_URL }}
working-directory: tests
run: python -m pytest test.py