Add SVG Renderer to Image Dash Item to handle resizing and zooming … #915
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: Test | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: 'true' | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- name: Cache pip dependencies | |
id: cache | |
uses: actions/cache@v1 | |
env: | |
cache-name: cache-python-dependencies | |
with: | |
path: ~\AppData\Local\pip\Cache | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Install dependencies | |
shell: bash | |
run: | | |
python -m pip install --upgrade pip | |
pip install wheel | |
pip install flake8 | |
pip install pytest-cov | |
pip install -r requirements.txt | |
pip install -e parsley | |
find sinks/ sources/ tools/ -name requirements.txt -type f -exec pip install -r {} \; | |
- name: Lint with flake8 | |
shell: bash | |
run: | | |
# stop the build if there are Python syntax errors or undefined names | |
# error codes shown by `--select` can be found | |
# here (F): https://flake8.pycqa.org/en/latest/user/error-codes.html | |
# and here (E): https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes | |
# flake8 config can be found in setup.cfg | |
flake8 | |
- name: Test with pytest | |
shell: bash | |
run: | | |
pytest | |
- name: Enforce autopep8 | |
shell: bash | |
run: | | |
autopep8 -d -r sources/ sinks/ omnibus/ tools/ *.py --exit-code |