-
Notifications
You must be signed in to change notification settings - Fork 295
68 lines (65 loc) · 1.54 KB
/
main.yml
File metadata and controls
68 lines (65 loc) · 1.54 KB
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
66
67
68
name: CI
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- main
defaults:
run:
shell: bash
env:
OBJC_DISABLE_INITIALIZE_FORK_SAFETY: YES
jobs:
fastcore:
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos] #,windows]
py: ["3.11", "3.12", "3.13"]
include:
#- os: windows
# shell: "/usr/bin/bash"
- os: ubuntu
shell: "/bin/bash"
- os: macos
shell: "/bin/bash"
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.py }}
- name: Install dependencies
run: |
pip install -Uqq "nbdev>3"
pip install -e ".[dev]"
- name: Run tests
run: nbdev-test
env:
SHELL: ${{ matrix.shell }}
nbdev-integration-test:
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.12'
- name: clone this branch [fastcore]
uses: actions/checkout@v3
with:
path: fastcore_lib
- name: clone nbdev
uses: actions/checkout@v3
with:
repository: 'fastai/nbdev'
path: nbdev
- name: Install libraries
run: |
cd fastcore_lib && pip install -Ue .[dev]
cd ../nbdev && pip install -Ue .[dev]
- name: test nbdev notebooks
run: |
cd nbdev && nbdev-test