-
Notifications
You must be signed in to change notification settings - Fork 11
36 lines (34 loc) · 1.1 KB
/
tests.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
name: "Torchélie tests"
on: [push]
jobs:
install-dependencies:
name: "Dependencies + Tests"
runs-on: ubuntu-20.04
steps:
- name: "Checkout code"
uses: actions/checkout@v2
- name: "Cache pip"
uses: actions/cache@v2
with:
# This path is specific to Ubuntu
path: ~/.cache/pip
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: "Set up Python"
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: "Install Python tooling"
run: |
python -m pip install --upgrade pip
pip install pytest
- name: "Install dependencies"
run: |
pip install -r requirements.txt
pip install -r requirements-full.txt
- name: "Run tests with pytest (without OpenCV)"
run: |
python -m pytest -m "not require_opencv and not require_tensorboard"