[Snyk] Security upgrade setuptools from 40.5.0 to 70.0.0 #1202
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: Tutorials | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "**.py" | |
- "**.ipynb" | |
- "requirements*.txt" | |
pull_request: | |
types: [opened, synchronize, reopened] | |
paths: | |
- "**.py" | |
- "**.ipynb" | |
- "requirements*.txt" | |
jobs: | |
tutorial-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 3 | |
matrix: | |
python-version: [3.8, 3.9] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Upgrade pip | |
run: | | |
pip install --upgrade --user pip | |
- name: Get pip cache dir | |
id: pip-cache | |
run: | | |
echo "::set-output name=dir::$(pip cache dir)" | |
- name: pip cache | |
uses: actions/cache@v2 | |
with: | |
path: ${{ steps.pip-cache.outputs.dir }} | |
key: ${{ runner.os }}-pip-py${{ matrix.python-version }}-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip-py${{ matrix.python-version }}- | |
- name: Install dependencies | |
run: | | |
hash -r | |
pip install -r requirements.dev.txt | |
python setup.py install | |
- name: Run the tutorials | |
run: | | |
pytest tests/notebooks/notebooks_test.py -n auto |