-
Notifications
You must be signed in to change notification settings - Fork 5
38 lines (31 loc) · 1.07 KB
/
pytest.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
---
name: Unit and integration tests
on:
pull_request:
branches: [main, dev]
jobs:
test-itwinai:
name: Test itwinai with pytest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install compilers for Horovod
run: |
sudo apt-get update &&
sudo apt-get install -y gcc-11 g++-11 &&
sudo apt-get install -y cmake &&
sudo apt-get install openmpi-bin openmpi-common openmpi-doc libopenmpi-dev &&
gcc --version &&
cmake --version &&
mpirun --version
- name: Make PyTorch virtualenv
shell: bash -l {0}
run: make torch-env-cpu
- name: Make Tensorflow virtualenv
shell: bash -l {0}
run: make tensorflow-env-cpu
# NOTE, to change the name in which tests are run, set custom TORCH_ENV and TF_ENV env variables.
# Default environment names are ".venv-pytorch" and ".venv-tf"
- name: Run pytest for workflows
shell: bash -l {0}
run: .venv-pytorch/bin/pytest -v ./tests/ -m "not hpc"