fix documentation notebook image #106
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: Tests | |
on: | |
push: | |
branches: | |
- main | |
- '**' | |
paths-ignore: | |
- 'docs/**' | |
- '*.md' | |
- '*.rst' | |
- '*.txt' | |
pull_request: | |
branches: | |
- main | |
- '*.x' | |
paths-ignore: | |
- 'docs/**' | |
- '*.md' | |
- '*.rst' | |
- '*.txt' | |
jobs: | |
tests: | |
name: ${{ matrix.name }} | |
runs-on: ${{ matrix.os }} | |
env: | |
APPDATA: DefaultNonExistingPath | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- {name: 3.10 Mac, python: '3.10', os: macos-latest, tox: py310} | |
- {name: 3.10 Linux, python: '3.10', os: ubuntu-latest, tox: py310} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: update pip | |
run: | | |
python -m pip install -U pip | |
- name: get pip cache dir | |
id: pip-cache | |
run: echo "::set-output name=dir::$(pip cache dir)" | |
- name: cache pip | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.pip-cache.outputs.dir }} | |
key: pip|${{ runner.os }}|${{ matrix.python }}|${{ hashFiles('requirements/*.txt') }} | |
restore-keys: pip|${{ runner.os }}|${{ matrix.python }} | |
- run: pip install tox | |
env: | |
APPDATA: DefaultNonExistingPath | |
- run: tox -e ${{ matrix.tox }} |