-
Notifications
You must be signed in to change notification settings - Fork 68
61 lines (58 loc) · 1.79 KB
/
tests.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
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Tests
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
short_tests:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Installation
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r ci/requirements_tests.txt
python3 -m pip install -e .
- name: Running short tests
run: |
make run_short_tests
all_tests:
runs-on: ubuntu-latest
# todo put back 'push'
if: github.event_name == 'pull_request'
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Installation
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r ci/requirements_tests.txt
python3 -m pip install -r ci/requirements_optional.txt
python3 -m pip install -e .
- name: Running all tests
# todo
run: |
if [ "${{ matrix.python-version }}" == "3.8" ]; then
make run_all_tests WANDB_API_KEY=${{ secrets.WANDB_API_KEY }} NEPTUNE_API_TOKEN=${{ secrets.NEPTUNE_API_TOKEN }} DOWNLOAD_ZOO_IN_TESTS=no TEST_CLOUD_LOGGERS=yes
else
make run_all_tests WANDB_API_KEY=${{ secrets.WANDB_API_KEY }} NEPTUNE_API_TOKEN=${{ secrets.NEPTUNE_API_TOKEN }}
fi