-
Notifications
You must be signed in to change notification settings - Fork 55
53 lines (48 loc) · 1.35 KB
/
test_predict.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
name: Predict Tests
on:
push:
branches: ["dev", "refactoring"]
pull_request:
branches: ["dev", "refactoring"]
permissions:
contents: read
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
env:
POETRY_VERSION: '1.8.3'
PYTHON_VERSION: '3.11'
jobs:
test-predict:
if: github.event.pull_request.draft == false
runs-on:
- self-hosted
- Linux
- ubuntu
- cpu
steps:
- uses: actions/checkout@v4
- uses: snok/install-poetry@v1
with:
version: ${{ env.POETRY_VERSION }}
virtualenvs-create: false
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Run tests for predict task
run: |
make env.conda
source /builds/miniconda3/etc/profile.d/conda.sh
conda activate "${{ github.workspace }}"/env
make install
cd tests
poetry run pytest --verbose \
--junitxml=./test-reports/test_predict_report.xml \
--disable-warnings \
--verbose \
--basetemp=$HOME/tmp/predict \
--input_data_directory=/mnt/data/data_ci \
test_predict.py
- name: Cleaning
run: |
rm -rf $HOME/tmp/predict/*