build(deps-dev): bump pre-commit from 3.8.0 to 4.0.0 #1101
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: test_and_publish_dev | |
on: | |
pull_request: | |
branches: ['dev'] | |
push: | |
branches: ['dev'] | |
workflow_dispatch: | |
concurrency: | |
group: 'pages' | |
cancel-in-progress: false | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Setup SSH and Python with Poetry | |
uses: ./.github/actions/setup | |
with: | |
ssh-key: ${{ secrets.CLI_SECRET_KEY }} | |
- name: Setup xmllint | |
uses: Bpolitycki/[email protected] | |
- name: Check the formatting of .py-files | |
run: ./Taskfile fmt-check | |
- name: Check the formatting of .xml-files | |
run: ./Taskfile fmt-xml | |
- name: Lint all .py-files | |
run: ./Taskfile lint-only | |
- name: Validate all schema source files | |
run: ./Taskfile validate | |
- name: Run all tests using pytest | |
run: poetry run pytest -n 4 | |
publish: | |
runs-on: ubuntu-latest | |
if: github.event_name != 'pull_request' | |
needs: test | |
permissions: | |
contents: write | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
PRE_COMMIT_ALLOW_NO_CONFIG: 1 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
fetch-depth: 0 | |
- name: Setup SSH and Python with Poetry | |
uses: ./.github/actions/setup | |
with: | |
ssh-key: ${{ secrets.CLI_SECRET_KEY }} | |
- name: Set docs-url | |
run: | | |
url=$(gh api "repos/$GITHUB_REPOSITORY/pages" --jq '.html_url') | |
echo "DOCS_URL=${url}" >> "$GITHUB_ENV" | |
- name: Build and publish | |
uses: ./.github/actions/mike | |
with: | |
version-name: 'dev' |