cache the model so that you can run it w/o an active network connecti… #680
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: Build-and-Test | |
on: | |
push: | |
branches: | |
- trunk | |
pull_request: | |
jobs: | |
tests: | |
name: ${{ matrix.name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- {name: Linux, python: '3.9', os: ubuntu-latest, tox: py39} | |
- {name: Windows, python: '3.9', os: windows-latest, tox: py39} | |
- {name: Mac, python: '3.9', os: macos-latest, tox: py39} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python }} | |
cache: 'pip' | |
cache-dependency-path: 'requirements/*.txt' | |
- name: update pip | |
run: | | |
pip install -U wheel | |
pip install -U setuptools | |
python -m pip install -U pip | |
- run: pip install tox | |
- run: tox -e ${{ matrix.tox }} |