Skip to content

Commit

Permalink
fix the build checks, point dispatch to test by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Oct 18, 2024
1 parent 5732ef0 commit 0765427
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish-internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
deploy-to:
description: "Choose whether to publish to test or prod"
type: string
default: "prod"
default: "test"
branch:
description: "Choose the branch to publish"
type: string
Expand All @@ -33,6 +33,7 @@ on:
defaults:
run:
shell: bash
working-directory: ./${{ inputs.package }}

jobs:
publish:
Expand All @@ -54,7 +55,6 @@ jobs:
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- id: package
run: echo "version=$(hatch version)" >> $GITHUB_OUTPUT
working-directory: ./${{ inputs.package }}
- id: published
run: |
versions_published="$(aws codeartifact list-package-versions \
Expand All @@ -74,7 +74,7 @@ jobs:
hatch version ${{ steps.next.outputs.internal_release_version }}
hatch build
hatch run build:check-all
- run: |
export TWINE_PASSWORD=$(aws codeartifact get-authorization-token \
--domain ${{ vars.AWS_DOMAIN }} \
--output text \
Expand All @@ -88,4 +88,3 @@ jobs:
--query repositoryEndpoint)
twine upload dist/*
working-directory: ./${{ inputs.package }}
2 changes: 1 addition & 1 deletion .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
deploy-to:
description: "Choose whether to publish to test or prod"
type: string
default: "prod"
default: "test"
branch:
description: "Choose the branch to publish"
type: string
Expand Down
4 changes: 2 additions & 2 deletions dbt-athena-community/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ check-all = [
"- check-sdist",
]
check-wheel = [
"twine check dist/*",
"check-wheel-contents dist/*.whl --ignore W007,W008",
"find ./dist/dbt_athena_community-*.whl -maxdepth 1 -type f | xargs python -m pip install --force-reinstall --find-links=dist/",
"pip freeze | grep dbt-athena-community",
"pip freeze | grep dbt-athena",
]
check-sdist = [
"check-wheel-contents dist/*.whl --ignore W007,W008",
"twine check dist/*",
"find ./dist/dbt_athena_community-*.gz -maxdepth 1 -type f | xargs python -m pip install --force-reinstall --find-links=dist/",
"pip freeze | grep dbt-athena-community",
"pip freeze | grep dbt-athena",
Expand Down
4 changes: 2 additions & 2 deletions dbt-athena/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ check-all = [
"- check-sdist",
]
check-wheel = [
"twine check dist/*",
"check-wheel-contents dist/*.whl --ignore W007,W008",
"find ./dist/dbt_athena-*.whl -maxdepth 1 -type f | xargs python -m pip install --force-reinstall --find-links=dist/",
"pip freeze | grep dbt-athena",
]
check-sdist = [
"check-wheel-contents dist/*.whl --ignore W007,W008",
"twine check dist/*",
"find ./dist/dbt_athena-*.gz -maxdepth 1 -type f | xargs python -m pip install --force-reinstall --find-links=dist/",
"pip freeze | grep dbt-athena",
]
Expand Down

0 comments on commit 0765427

Please sign in to comment.