Skip to content

Commit

Permalink
Fix CI workflow default branches (#89)
Browse files Browse the repository at this point in the history
* Fix CI workflow default branches

* fix

* Remove package GPG sign
  • Loading branch information
sambles authored Feb 6, 2024
1 parent d642c08 commit 11351b4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 31 deletions.
29 changes: 2 additions & 27 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,24 +168,6 @@ jobs:
name: bin_package
path: ${{ github.workspace }}/

- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PYPI_SIGNING_KEY }}
passphrase: ${{ secrets.GPG_PYPI_SIGNING_PASS }}

- name: GPG sign Source package
working-directory: ${{ github.workspace }}
run: |
gpg --batch --no-tty --passphrase-fd 0 --detach-sign -a ${{ needs.package.outputs.src_filename }}
- name: GPG sign Wheel package
working-directory: ${{ github.workspace }}
run: |
gpg --batch --no-tty --passphrase-fd 0 --detach-sign -a ${{ needs.package.outputs.whl_filename }}
# --- Create Release --- #
- name: Push changes
run: |
Expand All @@ -204,7 +186,6 @@ jobs:
draft: false
prerelease: ${{ env.PRE_RELEASE }}


# --- Attach build assest --- #
- name: Upload Source package
id: upload-source-release-asset
Expand Down Expand Up @@ -234,19 +215,13 @@ jobs:
run: pip install twine

- name: PYPI - Source package
run: |
twine upload \
${{ needs.package.outputs.src_filename }} \
${{ needs.package.outputs.src_filename }}.asc
run: twine upload ${{ needs.package.outputs.src_filename }}
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

- name: PYPI - Linux package
run: |
twine upload \
${{ needs.package.outputs.whl_filename }} \
${{ needs.package.outputs.whl_filename }}.asc
run: twine upload ${{ needs.package.outputs.whl_filename }}
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
platform_testing:
uses: OasisLMF/OasisPlatform/.github/workflows/test-python.yml@main
uses: OasisLMF/OasisPlatform/.github/workflows/test-python_api.yml@main
secrets: inherit
with:
ods_branch: ${{ github.ref }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
oed_spec_branch: ${{ inputs.oed_spec_branch }}

build-odm:
uses: OasisLMF/OasisDataManager/.github/workflows/build.yml@fix/release-0.1.0
uses: OasisLMF/OasisDataManager/.github/workflows/build.yml@main
secrets: inherit
with:
odm_branch: ${{ github.event_name != 'workflow_dispatch' && 'fix/release-0.1.0' || inputs.ods_branch }}
odm_branch: ${{ github.event_name != 'workflow_dispatch' && 'develop' || inputs.ods_branch }}

test:
name: Run Pytest
Expand Down Expand Up @@ -58,4 +58,4 @@ jobs:
run: pip install -r tests/requirements.in

- name: Run tests
run: pytest -v
run: pytest -v

0 comments on commit 11351b4

Please sign in to comment.