-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #212 from SSRQ-SDS-FDS/dev
1.0.0 release PR
- Loading branch information
Showing
557 changed files
with
13,078 additions
and
12,149 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Deploy using mike | ||
description: A action which deploys an mkdocs site using mike. | ||
|
||
inputs: | ||
version-name: | ||
description: The name of the version as well as the name of the target folder | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Configure Git user | ||
shell: bash | ||
run: | | ||
git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
- name: Deploy dev | ||
if: ${{ inputs.version-name == 'dev' }} | ||
run: | | ||
if poetry run mike list | grep -q "dev"; then | ||
dev_exists=true | ||
else | ||
dev_exists=false | ||
fi | ||
if $dev_exists; then | ||
poetry run mike delete dev --push | ||
fi | ||
poetry run mike deploy dev --push | ||
if poetry run mike list | grep -q "latest"; then | ||
latest_exists=true | ||
else | ||
latest_exists=false | ||
fi | ||
if ! $latest_exists; then | ||
poetry run mike set-default dev --push | ||
fi | ||
shell: bash | ||
- name: Deploy concrete docs version | ||
if: ${{ inputs.version-name == 'main' }} | ||
run: | | ||
VERSION_NUMBER=$(grep -oE '"SLS TEI-Schema".*\sversion\s?=\s?"([0-9a-zA-Z.-]+)"' pyproject.toml | sed -n 's/.*version = "\(.*\)".*/\1/p') | ||
poetry run mike deploy ${VERSION_NUMBER} latest --update-aliases --no-redirect --push | ||
poetry run mike set-default latest --push | ||
shell: bash |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Setup SSH, Python and Poetry | ||
description: A simple action to setup everything, including dependencies. | ||
|
||
inputs: | ||
poetry-version: | ||
description: Poetry version | ||
required: false | ||
default: '1.2.2' | ||
python-version: | ||
description: Python version | ||
required: false | ||
default: '3.11' | ||
ssh-key: | ||
description: The ssh-key | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Setup access to private repo(s) | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ inputs.ssh-key }} | ||
- name: Install poetry | ||
shell: bash | ||
run: pipx install poetry==${{ inputs.poetry-version }} | ||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v4 | ||
with: | ||
cache: 'poetry' | ||
python-version: ${{ inputs.python-version }} | ||
- name: Install dependencies | ||
shell: bash | ||
run: poetry install |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,47 +3,64 @@ name: test_and_publish_dev | |
on: | ||
pull_request: | ||
branches: ['dev'] | ||
push: | ||
branches: ['dev'] | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
concurrency: | ||
group: 'pages' | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
ci: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.11'] | ||
poetry-version: ['1.2.2'] | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
- name: Setup access to private repo(s) | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.CLI_SECRET_KEY }} | ||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v4 | ||
- name: Setup SSH and Python with Poetry | ||
uses: ./.github/actions/setup | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Setup Poetry | ||
uses: abatilo/actions-poetry@v2 | ||
with: | ||
poetry-version: ${{ matrix.poetry-version }} | ||
ssh-key: ${{ secrets.CLI_SECRET_KEY }} | ||
- name: Setup xmllint | ||
uses: Bpolitycki/[email protected] | ||
- name: Install dependencies | ||
run: poetry install | ||
- 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' |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[submodule "src/lib/tei_stylesheets"] | ||
path = src/lib/tei_stylesheets | ||
[submodule "utils/schema/lib/tei_stylesheets"] | ||
path = utils/schema/lib/tei_stylesheets | ||
url = https://github.com/TEIC/Stylesheets.git | ||
branch = release-7.54.0 | ||
shallow = true |
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
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
Oops, something went wrong.