bump #1669
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- master | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
fastcore: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu, macos]#,windows] | |
py: ["3.9", "3.10", "3.11"] | |
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 --pre nbdev | |
pip install -e ".[dev]" | |
#- name: Check if notebooks are synced and cleaned | |
#uses: fastai/workflows/nb@master | |
- 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.9' | |
- 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 | |
fastai-integration-test: | |
runs-on: ubuntu-latest | |
env: | |
download: "true" | |
strategy: | |
matrix: | |
nb: ['[0-1]', '[2-3]', '[4-5]','[6-7]', '[8-9]'] | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
- name: clone this branch [fastcore] | |
uses: actions/checkout@v3 | |
with: | |
path: fastcore/ | |
- name: clone fastai | |
uses: actions/checkout@v3 | |
with: | |
repository: 'fastai/fastai' | |
path: fastai | |
- name: Install libraries | |
run: | | |
pip3 install -Uqq git+https://github.com/fastai/nbdev.git | |
cd fastai && pip install -Ue ".[dev]" | |
cd ../fastcore && pip install -Ue .[dev] | |
- name: check for cache hit | |
uses: actions/cache@v3 | |
id: cache | |
with: | |
path: ~/.fastai/data | |
key: 'fastai-test-data-v5' | |
- name: download data | |
if: env.download == 'true' && steps.cache.outputs.cache-hit != 'true' | |
run: | | |
wget https://raw.githubusercontent.com/fastai/docker-containers/master/fastai/tmp_scripts/download_testdata.py | |
ipython download_testdata.py | |
mkdir -p $HOME/.fastai/data | |
find $HOME/.fastai/archive/ -name "*.tgz" -exec tar -xzvf {} -C $HOME/.fastai/data \; | |
- name: Test fastai notebooks | |
run: | | |
cd fastai | |
nbdev_test --flags '' --n_workers 3 --pause 1.5 --file_re "[0-9]${{matrix.nb}}.*" |