Merge pull request #11 from jonesbusy/feature/support-bitbucket #40
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
# SPDX-FileCopyrightText: 2023 Thomas Breitner | |
# | |
# SPDX-License-Identifier: CC0-1.0 | |
name: Run some tests and update github pages | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_call: | |
jobs: | |
tests: | |
name: Run some tests, checks, formatters | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Install dev dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
python -m pip install -e .[dev] | |
- name: Test REUSE compliance | |
run: reuse lint | |
- name: Check typing | |
run: python -m mypy . | |
- name: Run ruff | |
uses: chartboost/ruff-action@v1 | |
with: | |
src: "./src" | |
ghpages: | |
uses: ./.github/workflows/ghpages.yml |