Skip to content

enhance lint

enhance lint #44

Workflow file for this run

name: Actions
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
check:
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- { os: ubuntu-latest, pip: ~/.cache/pip }
- { os: macos-latest, pip: ~/Library/Caches/pip }
python: ["3.9", "3.10", "3.11", "3.12"]
name: "${{ matrix.config.os }} Python ${{ matrix.python }}"
steps:
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install tox
run: |
pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test
run: tox
test-docs:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
needs: [check]
name: Test docs
steps:
- id: deployment
uses: sphinx-notes/pages@v3
with:
publish: false
deploy-docs:
if: github.event_name == 'push'
runs-on: ubuntu-latest
needs: [check]
name: Deploy docs
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
steps:
- id: deployment
uses: sphinx-notes/pages@v3