Skip to content

GitHub Action Ubuntu version bump #38

GitHub Action Ubuntu version bump

GitHub Action Ubuntu version bump #38

name: Test Jupyter Notebook πŸ““
on: push
jobs:
build-n-deploy:
name: Test πŸ”§
runs-on: ubuntu-22.04
steps:
- name: Checkout code πŸ›ŽοΈ
uses: actions/checkout@v2.3.1
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