-
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.
- Loading branch information
1 parent
537d4bc
commit 9a1b434
Showing
29 changed files
with
634 additions
and
546 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,11 @@ | ||
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY | ||
_commit: 01e7745 | ||
_src_path: https://github.com/MartinBernstorff/nimble-python-template | ||
email: martinbernstorff@gmail.com | ||
full_name: Martin Bernstorff | ||
github_username: MartinBernstorff | ||
package_name: iterpy | ||
project_name: iterpy | ||
project_slug: iterpy | ||
python_version: '3.9' | ||
release_to_pypi: 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,42 +1,35 @@ | ||
name: Release | ||
on: | ||
workflow_run: | ||
workflows: ["Tests"] | ||
workflows: ["test"] | ||
types: | ||
- completed | ||
# Manual trigger | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
concurrency: release | ||
permissions: | ||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing using PyPI | ||
# a guide on how to set it up is available here: https://blog.pypi.org/posts/2023-04-20-introducing-trusted-publishers/ | ||
|
||
# A guide on how to set it up is available here: https://blog.pypi.org/posts/2023-04-20-introducing-trusted-publishers/ | ||
# You can add a new publisher here: https://pypi.org/manage/account/publishing/ | ||
|
||
if: ${{ github.ref == 'refs/heads/main' && github.event.workflow_run.conclusion == 'success'}} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.PAT }} | ||
|
||
- name: Python Semantic Release | ||
id: release | ||
uses: python-semantic-release/python-semantic-release@v8.0.4 | ||
uses: python-semantic-release/python-semantic-release@v9.1.0 | ||
with: | ||
github_token: ${{ secrets.PAT }} | ||
|
||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
if: steps.release.outputs.released == 'true' | ||
# This action supports PyPI's trusted publishing implementation, which allows authentication to PyPI without a manually | ||
# configured API token or username/password combination. To perform trusted publishing with this action, your project's | ||
# publisher must already be configured on PyPI. | ||
|
||
- name: Publish package distributions to GitHub Releases | ||
uses: python-semantic-release/upload-to-gh-release@main | ||
if: steps.release.outputs.released == 'true' | ||
with: | ||
github_token: ${{ secrets.PAT }} |
This file was deleted.
Oops, something went wrong.
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,32 @@ | ||
# This workflow will install Python dependencies, run pytests and run notebooks | ||
# then it will in python 3.9 (ubuntu-latest) create a badge with the coverage | ||
# and add it to the PR. This badge will be updated if the PR is updated. | ||
|
||
name: tests | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
permissions: write-all | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout (GitHub) | ||
uses: actions/checkout@v3 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build dev container and run CI | ||
uses: devcontainers/ci@v0.3 | ||
with: | ||
imageName: ghcr.io/aarhus-psychiatry-research/psycop-common | ||
push: filter | ||
runCmd: | | ||
make validate_ci |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.