[WIP] Switch to optimi optimizers #435
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: 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 |