|
18 | 18 | strategy: |
19 | 19 | fail-fast: false |
20 | 20 | matrix: |
21 | | - os: [ubuntu, macos]#,windows] |
| 21 | + os: [ubuntu, macos] #,windows] |
22 | 22 | py: ["3.10", "3.11", "3.12", "3.13"] |
23 | 23 | include: |
24 | 24 | #- os: windows |
|
68 | 68 | - name: test nbdev notebooks |
69 | 69 | run: | |
70 | 70 | cd nbdev && nbdev_test |
71 | | - |
72 | | - fastai-integration-test: |
73 | | - runs-on: ubuntu-latest |
74 | | - env: |
75 | | - download: "true" |
76 | | - strategy: |
77 | | - matrix: |
78 | | - nb: ['[0-1]', '[2-3]', '[4-5]','[6-7]', '[8-9]'] |
79 | | - steps: |
80 | | - - name: Set up Python |
81 | | - uses: actions/setup-python@v3 |
82 | | - with: |
83 | | - python-version: '3.11' |
84 | | - - name: clone this branch [fastcore] |
85 | | - uses: actions/checkout@v3 |
86 | | - with: |
87 | | - path: fastcore/ |
88 | | - |
89 | | - - name: clone fastai |
90 | | - uses: actions/checkout@v3 |
91 | | - with: |
92 | | - repository: 'fastai/fastai' |
93 | | - path: fastai |
94 | | - |
95 | | - - name: Install libraries |
96 | | - run: | |
97 | | - pip3 install -Uqq git+https://github.com/fastai/nbdev.git |
98 | | - cd fastai && pip install -Ue ".[dev]" |
99 | | - cd ../fastcore && pip install -Ue .[dev] |
100 | | -
|
101 | | - - name: check for cache hit |
102 | | - uses: actions/cache@v3 |
103 | | - id: cache |
104 | | - with: |
105 | | - path: ~/.fastai/data |
106 | | - key: 'fastai-test-data-v5' |
107 | | - |
108 | | - - name: download data |
109 | | - if: env.download == 'true' && steps.cache.outputs.cache-hit != 'true' |
110 | | - run: | |
111 | | - wget https://raw.githubusercontent.com/fastai/docker-containers/master/fastai/tmp_scripts/download_testdata.py |
112 | | - ipython download_testdata.py |
113 | | - mkdir -p $HOME/.fastai/data |
114 | | - find $HOME/.fastai/archive/ -name "*.tgz" -exec tar -xzvf {} -C $HOME/.fastai/data \; |
115 | | - |
116 | | - - name: Test fastai notebooks |
117 | | - run: | |
118 | | - cd fastai |
119 | | - nbdev_test --flags '' --n_workers 3 --pause 1.5 --file_re "[0-9]${{matrix.nb}}.*" |
0 commit comments