-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- configure gh-pages via workflow to create sphinx autodocs - clean-up workflow files and add badges to readme - see docs at https://robert-koch-institut.github.io/mex-common
- Loading branch information
1 parent
2c60ed2
commit 6c55306
Showing
7 changed files
with
139 additions
and
38 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
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,80 @@ | ||
name: Documentation | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
workflow_dispatch: | ||
|
||
env: | ||
PIP_NO_OPTION: on | ||
PIP_NO_CLEAN: on | ||
PIP_PREFER_BINARY: on | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Cache requirements | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-requirements | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ env.cache-name }}-${{ hashFiles('requirements.txt') }} | ||
restore-keys: | | ||
${{ env.cache-name }}- | ||
- name: Cache poetry | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-poetry | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ env.cache-name }}-${{ hashFiles('**/poetry.lock') }} | ||
restore-keys: | | ||
${{ env.cache-name }}- | ||
- name: Setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Setup pages | ||
uses: actions/configure-pages@v3 | ||
|
||
- name: Install requirements | ||
run: make install | ||
|
||
- name: Run sphinx | ||
run: make docs | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: ./docs/dist | ||
|
||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |
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,41 @@ | ||
name: Linting | ||
|
||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
env: | ||
PIP_NO_OPTION: on | ||
PIP_NO_CLEAN: on | ||
PIP_PREFER_BINARY: on | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Cache requirements | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-requirements | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ env.cache-name }}-${{ hashFiles('requirements.txt') }} | ||
restore-keys: | | ||
${{ env.cache-name }}- | ||
- name: Setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Install requirements | ||
run: make setup | ||
|
||
- name: Run linters | ||
run: make linter |
38 changes: 6 additions & 32 deletions
38
.github/workflows/default.yml → .github/workflows/testing.yml
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
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,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "mex-common" | ||
version = "0.10.1" | ||
version = "0.10.2" | ||
description = "RKI MEx common library." | ||
authors = ["RKI MEx Team <[email protected]>"] | ||
readme = "README.md" | ||
|