-
Notifications
You must be signed in to change notification settings - Fork 13
66 lines (52 loc) · 1.59 KB
/
auto_test.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
name: Automatic testing for continuous integration
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Display disk space
run: df -h
- name: Maximize build disk space
# Remove software and language runtimes we're not using
run: sudo rm -rf \
"$AGENT_TOOLSDIRECTORY" \
/opt/google/chrome \
/opt/microsoft/msedge \
/opt/microsoft/powershell \
/opt/pipx \
/usr/lib/mono \
/usr/local/julia* \
/usr/local/lib/android \
/usr/local/lib/node_modules \
/usr/local/share/chromium \
/usr/local/share/powershell \
/usr/share/dotnet \
/usr/share/swift
- name: Display disk space
run: df -h
- name: Set up Python 3.9.16
uses: actions/setup-python@v3
with:
python-version: "3.9.16"
- name: Install the repository in editable mode
run: pip install -e ".[dev]"
- name: Clean up pip cache
run: pip cache purge
- name: Test regular tests with pytest
continue-on-error: true
run: pytest -m "not require_large_download and not require_download"
- name: Download data for test
continue-on-error: true
run: python scripts/download_pretrained_models.py --skip_large_files
- name: Test download tests with pytest
continue-on-error: true
run: pytest -m "require_download"
- name: Delete downloaded data
run: rm -rf data/results