-
Notifications
You must be signed in to change notification settings - Fork 5
65 lines (55 loc) · 1.59 KB
/
nbdev.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
54
55
56
57
58
59
60
61
62
63
64
65
name: nbdev-ci
on:
workflow_dispatch:
push:
paths: [ 'nbs/**', 'fastxtend/**' ]
pull_request:
paths: [ 'nbs/**', 'fastxtend/**' ]
jobs:
nbdev-sync:
runs-on: ubuntu-latest
steps:
- name: Uncacheable Apt Install
run: |
sudo apt-get update
sudo apt-get install -y libturbojpeg-dev
- name: Cacheable Apt Install
uses: awalsh128/[email protected]
with:
packages: libsndfile1-dev libopencv-dev python3-opencv
version: 1.0
- name: Test Library Sync
uses: fastai/workflows/nbdev-ci@master
with:
skip_test: true
nbdev-tests:
needs: nbdev-sync
runs-on: ubuntu-latest
strategy:
matrix:
py: ['3.8', '3.9', '3.10', '3.11']
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Uncacheable Apt Install
run: |
sudo apt-get update
sudo apt-get install -y libturbojpeg-dev
- name: Cacheable Apt Install
uses: awalsh128/[email protected]
with:
packages: libsndfile1-dev libopencv-dev python3-opencv
version: 1.0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.py }}
architecture: 'x64'
cache: "pip"
cache-dependency-path: settings.ini
- name: Install Library
run: |
pip install --upgrade pip
pip install -e .[dev] --extra-index-url https://download.pytorch.org/whl/cpu
- name: Run Tests
run: nbdev_test