CIFAR classifiers #37
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: Test Jupyter Notebook π | |
on: push | |
jobs: | |
build-n-deploy: | |
name: Test π§ | |
runs-on: ubuntu-18.04 | |
steps: | |
- name: Checkout code ποΈ | |
uses: actions/[email protected] | |
with: | |
persist-credentials: false | |
- name: Cache models and data | |
uses: actions/cache@v3 | |
with: | |
path: | | |
/home/runner/.cache/torch | |
fat_forensics_overview/adult.data | |
key: ${{ runner.os }}-data_models | |
- name: Set up Python 3.8 π | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.8 | |
cache: 'pip' | |
- name: Install dependencies πΎ | |
run: | | |
pip install -r requirements-ci.txt | |
pip install -r .binder/requirements.txt | |
- name: Get PyTorch model | |
run: | | |
python -c 'import torchvision.models as models; models.inception_v3(pretrained=True);' | |
python -c 'import torchvision.models as models; models.alexnet(pretrained=True);' | |
- name: Test computation | |
env: | |
PYTHONPATH: 'tabular_surrogate_builder:surrogates_overview:pi_ice_pd' | |
run: pytest ./.tests | |
- name: Test fat_forensics_overview | |
run: pytest --nbval fat_forensics_overview/ --sanitize-with .nbval_sanitize_file.cfg | |
- name: Test tabular_surrogate_builder | |
run: pytest --nbval tabular_surrogate_builder/ --sanitize-with .nbval_sanitize_file.cfg | |
- name: Test surrogates_overview | |
run: pytest --nbval surrogates_overview/ --sanitize-with .nbval_sanitize_file.cfg | |
- name: Test pi_ice_pd | |
run: pytest --nbval pi_ice_pd/ --sanitize-with .nbval_sanitize_file.cfg |