[Snyk] Security upgrade pillow from 9.5.0 to 10.3.0 #29
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
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Python application | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7 | |
- name: Build | |
run: | | |
python -m pip install --upgrade pip | |
pip install wheel | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
python setup.py bdist_wheel | |
cd dist | |
- name: Publish releases to PyPI | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
uses: pypa/[email protected] | |
with: | |
password: ${{ secrets.pypitoken }} | |
- name: Build HTML Docs | |
run: | | |
pip install sphinx | |
pip install kentigern | |
pip install -r requirements.txt | |
pip install -r requirements_dev.txt | |
pip install . | |
cd docs | |
make multi | |
- name: SCP Deploy HTML Docs | |
uses: horochx/[email protected] | |
with: | |
local: docs/_build/html/ | |
remote: /home/danwilliams/code.daniel-williams.co.uk/otter | |
host: ${{ secrets.sshhost }} | |
user: ${{ secrets.sshuser }} | |
key: ${{ secrets.sshkey }} |