-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1015 Bytes
/
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
37
38
39
40
41
42
43
44
45
46
47
48
name: Run nbdev_test on all projects
on:
# Runs on pushes to any branch
push:
branches: ['*']
pull_request:
branches: ['*']
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
project:
- ship_model_lib
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.12
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Run nbdev_test
run: |
cd ${{ matrix.project }}
nbdev_test --do_print
- name: Check formatting by black
run: |
cd ${{ matrix.project }}
black --check .