-
Notifications
You must be signed in to change notification settings - Fork 21
37 lines (35 loc) · 1.15 KB
/
tests.yml
File metadata and controls
37 lines (35 loc) · 1.15 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
name: "Tests"
on:
push:
branches: [ master ]
pull_request:
branches: [ '**' ]
jobs:
testing:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install requirements
run: pip install -r requirements-dev.txt
- name: Python information
run: |
python3 --version | tee python_version.log
pip freeze | tee pip_freeze.log
- name: Unit tests
run: python3 manage.py test -v2
- name: Regression tests
run: bash RegressionTests/run.sh
# Continue even if tests fail, so that we can collect test outputs for debugging
continue-on-error: true
- name: Collect outputs
run: |
find . -type f \( -name "*.log" -o -name "*.out" -o -name "*.diff" \) -print | cut -c3- > listing.txt
echo "Creating an artifact with the following files:"
cat listing.txt
7z a -tzip regression-tests-appraise.zip @listing.txt
- name: Publish outputs
uses: actions/upload-artifact@v3
with:
name: regression-tests-appraise
path: regression-tests-appraise.zip