Skip to content

update pre-commit and ruff configurations #2472

update pre-commit and ruff configurations

update pre-commit and ruff configurations #2472

Workflow file for this run

on:
push:
branches:
- master
tags:
- v*
pull_request:
name: Build website
jobs:
test:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v4
with:
python-version: '3.7'
architecture: 'x64'
- name: pip cache
uses: actions/cache@v3
with:
path: ~/.cache/pip
key:
${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- run: pip install tox
- run: tox
env:
TOXENV: docs
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@releases/v4
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: docs/_build/html
base_branch: master
clean: true