Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
version: 2

registries:
bhpc-pypi:
type: python-index
url: https://artifacts.bhpc.dev/pypi/pypi/simple/
username: ${{secrets.ARTIFACT_REGISTRY_USERNAME}}
password: ${{secrets.ARTIFACT_REGISTRY_PASSWORD}}
replaces-base: true

updates:
- package-ecosystem: "github-actions"
directory: "/"
Expand All @@ -11,6 +20,8 @@ updates:

- package-ecosystem: "pip"
directory: "/"
registries:
- bhpc-pypi
schedule:
interval: "monthly"
groups:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Publish package
run: poetry publish --repository bhpc
env:
POETRY_REPOSITORIES_BHPC_URL: https://artifacts.bhpc.dev/pypi/keystone-python/
POETRY_REPOSITORIES_BHPC_URL: https://artifacts.bhpc.dev/pypi/keystone-python-client/
POETRY_HTTP_BASIC_BHPC_USERNAME: ${{ secrets.ARTIFACT_REGISTRY_USERNAME }}
POETRY_HTTP_BASIC_BHPC_PASSWORD: ${{ secrets.ARTIFACT_REGISTRY_PASSWORD }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:

publish:
name: Publish
needs: [ build ]
needs: [ version, build ]
uses: ./.github/workflows/Publish.yml
secrets: inherit
permissions:
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ jobs:
function-tests:
name: Function Tests
runs-on: ubuntu-latest
env:
POETRY_HTTP_BASIC_BHPC_PYPI_USERNAME: ${{ secrets.ARTIFACT_REGISTRY_USERNAME }}
POETRY_HTTP_BASIC_BHPC_PYPI_PASSWORD: ${{ secrets.ARTIFACT_REGISTRY_PASSWORD }}

services:
api:
image: artifacts.bhpc.dev/keystone-docker/keystone-api:latest
image: artifacts.bhpc.dev/keystone/keystone-api:latest
credentials:
username: ${{ secrets.ARTIFACT_REGISTRY_USERNAME }}
password: ${{ secrets.ARTIFACT_REGISTRY_PASSWORD }}
Expand Down Expand Up @@ -45,6 +48,9 @@ jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
env:
POETRY_HTTP_BASIC_BHPC_PYPI_USERNAME: ${{ secrets.ARTIFACT_REGISTRY_USERNAME }}
POETRY_HTTP_BASIC_BHPC_PYPI_PASSWORD: ${{ secrets.ARTIFACT_REGISTRY_PASSWORD }}

strategy:
fail-fast: false
Expand Down Expand Up @@ -96,4 +102,4 @@ jobs:

- name: Check test status
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'skipped') || contains(needs.*.result, 'cancelled') }}
run: exit 1
run: exit 1
20 changes: 10 additions & 10 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ dependencies = [
[project.optional-dependencies]
dev = ["coverage==7.15.2", ]

[[tool.poetry.source]]
name = "bhpc-pypi"
url = "https://artifacts.bhpc.dev/pypi/pypi/simple/"
priority = "primary"

[[tool.poetry.source]]
name = "pypi"
priority = "supplemental"

[tool.poetry]
packages = [{ include = "keystone_client" }]

Expand Down
Loading