Skip to content

Merge pull request #498 from SSRQ-SDS-FDS/dependabot/pip/dev/mkdocs-m… #1078

Merge pull request #498 from SSRQ-SDS-FDS/dependabot/pip/dev/mkdocs-m…

Merge pull request #498 from SSRQ-SDS-FDS/dependabot/pip/dev/mkdocs-m… #1078

Workflow file for this run

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'