Skip to content

Update draft-pdf.yml: change upload-artifact version to v4 #204

Update draft-pdf.yml: change upload-artifact version to v4

Update draft-pdf.yml: change upload-artifact version to v4 #204

# This workflow will install Python dependencies, run tests, and lint with a variety of Python versions
# For more information, see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff pytest pytest-cov
# install the package with requirements
pip install -e .
# install extra packages used in examples
pip install "matplotlib<=3.8.4"
pip install pandas plotly seaborn dash dash_bootstrap_components
# install extra packages to test notebooks
pip install nbmake pytest-xdist
- name: Lint with ruff
run: |
# stop the build if there are Python syntax errors or undefined names
# ruff --format=github --select=E9,F63,F7,F82 --target-version=py37 .
# default set of ruff rules with GitHub Annotations
ruff --format=github --target-version=py37 .
continue-on-error: true
- name: Test with pytest
run: |
# pytest --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html --nbmake -n=auto "./examples/notebooks/"
pytest --doctest-modules --nbmake -n=auto "./examples/notebooks/"