Update JavaScript dependencies #573
Workflow file for this run
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: Docs Tests | |
on: | |
push: | |
branches: '*' | |
pull_request: | |
branches: '*' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
python-version: '3.11' | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Python ${{ env.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.python-version }} | |
architecture: 'x64' | |
- name: Upgrade packaging dependencies | |
run: | | |
pip install --upgrade pip setuptools wheel | |
- name: Get pip cache dir | |
id: pip-cache | |
run: | | |
echo "::set-output name=dir::$(pip cache dir)" | |
- name: Cache pip | |
uses: actions/cache@v4 | |
with: | |
path: ${{ steps.pip-cache.outputs.dir }} | |
key: ${{ runner.os }}-pip-${{ env.python-version }}-${{ hashFiles('pyproject.toml') }} | |
restore-keys: | | |
${{ runner.os }}-pip-${{ env.python-version }}- | |
${{ runner.os }}-pip- | |
- name: Install the Python dependencies | |
run: | | |
pip install -e .[test] codecov | |
pip install -r docs/doc-requirements.txt | |
- name: Install pandoc | |
uses: pandoc/actions/[email protected] | |
with: | |
version: 3.6.4 | |
- name: List installed packages | |
run: | | |
pip freeze | |
pip check | |
- name: Run tests on documentation | |
run: | | |
EXIT_STATUS=0 | |
make -C docs/ html || EXIT_STATUS=$? | |
cd docs/source && pytest --nbval --current-env .. || EXIT_STATUS=$? | |
exit $EXIT_STATUS |