Update cryptography aiohttp urllib3 (#339) #124
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: On main push | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
security: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Run Snyk to check for vulnerabilities | |
uses: snyk/actions/python@b98d498629f1c368650224d6d212bf7dfa89e4bf | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
with: | |
args: --severity-threshold=high | |
command: monitor | |
documentation: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 3.8 | |
id: setup-python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Copy main branch into gh-pages | |
run: | | |
git checkout gh-pages | |
git reset --hard main | |
- name: Get pip cache dir | |
id: pip-cache | |
run: | | |
echo "::set-output name=dir::$(pip cache dir)" | |
- name: Cache pip dependencies | |
uses: actions/cache@v2 | |
with: | |
path: ${{ steps.pip-cache.outputs.dir }} | |
key: ${{ runner.os }}-pip-${{ steps.setup-python.outputs.python-version }} | |
- name: Install Poetry | |
run: pip install poetry | |
- name: Cache poetry | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pypoetry/virtualenvs | |
key: ${{ runner.os }}-poetry-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('poetry.lock') }} | |
restore-keys: | | |
${{ runner.os }}-poetry-${{ steps.setup-python.outputs.python-version }}- | |
- name: Install Poetry deps | |
run: poetry install | |
- name: Generate Sphinx documentation | |
working-directory: ./docsrc | |
run: | | |
. `poetry env info --path`/bin/activate | |
make html | |
- name: Copy Sphinx documentation into docs/ | |
working-directory: ./docsrc/_build/html | |
run: mv * $GITHUB_WORKSPACE/docs/ | |
- name: Commit changes | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add docs/ | |
git commit -m "Generated commit for Sphinx documentation" | |
git push -f origin gh-pages |