-
Notifications
You must be signed in to change notification settings - Fork 237
42 lines (42 loc) · 1.52 KB
/
pythontests.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: PythonTests
on:
push:
branches:
- master
paths:
- '**.py'
- 'requirements/**/*.txt'
pull_request:
paths:
- '**.py'
- 'requirements/**/*.txt'
jobs:
pythontests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install libs
run: >
sudo apt-get update && DEBIAN_FRONTEND=noninteractive sudo apt-get install --no-install-recommends -y --allow-downgrades --allow-remove-essential --allow-change-held-packages
libsasl2-dev
libsasl2-modules
build-essential
libssl-dev
libldap2-dev
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- uses: actions/cache@v2
id: pip-cache
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/base.txt') }}-${{ hashFiles('**/test.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Python dependencies
# if: steps.pip-cache.outputs.cache-hit != 'true'
run: |
python -m pip install --upgrade pip
pip install -r requirements/base.txt
pip install -r requirements/test.txt
- run: PYTHONPATH=querybook/server:plugins ./querybook/scripts/run_test --python