-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 920 Bytes
/
ci-test-run.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
name: Run Tests with Pytest
on:
push:
branches:
- '*'
jobs:
unit-tests-pytest:
name: Run unit tests with pytest
runs-on: ubuntu-latest
steps:
- name: Install system level libraries
run: |
sudo apt-get update
sudo apt-get -y install libpq-dev gcc
- name: Checkout code from remote origin.
uses: actions/checkout@v2
- name: Add project root to PYTHONPATH
run: |
import os
import sys
sys.path.append(os.path.abspath('.'))
shell: python
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Print current working directory
run: |
pwd
ls -lart
- name: Run tests
run: |
pytest tests/
env:
PYTHONPATH: ${{ github.workspace }}