This repository has been archived by the owner on Nov 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (63 loc) · 1.9 KB
/
ci.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: test
on: push
jobs:
test:
runs-on: ubuntu-20.04
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
cache: pip
python-version-file: '.python-version'
- name: Cache pip
id: cache-pip
uses: actions/[email protected]
with:
path: ${{ env.pythonLocation }}/*
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Install dependencies
if: steps.cache-pip.outputs.cache-hit != 'true'
run: make init-pip install-dev-requirements
env:
VIRTUAL_ENV: ${{ env.pythonLocation }}
- name: Init test data
run: make test-init-db test-init-variables
env:
VIRTUAL_ENV: ${{ env.pythonLocation }}
- name: Test
run: make test-run
env:
VIRTUAL_ENV: ${{ env.pythonLocation }}
ci:
runs-on: ubuntu-20.04
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
cache: pip
python-version-file: '.python-version'
- name: Cache pip
id: cache-pip
uses: actions/[email protected]
with:
path: ${{ env.pythonLocation }}/*
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Install dependencies
if: steps.cache-pip.outputs.cache-hit != 'true'
run: make init-pip install-dev-requirements
env:
VIRTUAL_ENV: ${{ env.pythonLocation }}
- name: Test
run: make lint
env:
VIRTUAL_ENV: ${{ env.pythonLocation }}