-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (45 loc) · 1.18 KB
/
test_on_push.yaml
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
name: CI
# Controls when the action will run.
on:
pull_request:
branches:
- main
- develop
push:
branches:
- develop
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
pipeline:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Upgrade pip
run: |
python -m pip install --upgrade pip
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential python3-dev
- name: Install dependencies part 1
run: |
pip install -r requirements1.txt
- name: Install dependencies part 2
run: |
pip install -r requirements2.txt
- name: Install dependencies part 3
run: |
pip install -r requirements3.txt --no-deps
- name: Set PYTHONPATH
run: |
echo "PYTHONPATH=$PYTHONPATH:$(pwd)/src" >> $GITHUB_ENV
- name: Run tests
run: |
python3 -m unittest -v -f tests/explainers_test.*