Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Nov 26, 2024
1 parent 3f0bbd8 commit f208784
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ on:
workflow_dispatch:

jobs:
test:
uses: ocadotechnology/codeforlife-workspace/.github/workflows/test-python-code.yaml@main
secrets: inherit
with:
# Cannot be set with an env var. Value must match in the release job.
python-version: 3.12
# test:
# uses: ocadotechnology/codeforlife-workspace/.github/workflows/test-python-code.yaml@main
# secrets: inherit
# with:
# # Cannot be set with an env var. Value must match in the release job.
# python-version: 3.12

# https://python-semantic-release.readthedocs.io/en/latest/automatic-releases/github-actions.html#common-workflow-example
release:
concurrency: release
runs-on: ubuntu-latest
needs: [test]
# needs: [test]
permissions:
id-token: write
contents: write
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:

- name: 🆕 Semantic Release
id: release
uses: python-semantic-release/python-semantic-release@v9
uses: python-semantic-release/python-semantic-release@v9.14.0
with:
github_token: ${{ secrets.CFL_BOT_GITHUB_TOKEN }}
git_committer_name: "cfl-bot"
Expand All @@ -60,12 +60,12 @@ jobs:
- name: 🚀 Publish to PyPI
uses: pypa/[email protected]
if: steps.release.outputs.released == 'true'
with:
password: ${{ secrets.PYPI_API_TOKEN }}
repository-url: https://pypi.org/p/codeforlife
# with:
# password: ${{ secrets.PYPI_API_TOKEN }}
# repository-url: https://pypi.org/p/codeforlife

- name: 🚀 Publish to GitHub Releases
uses: python-semantic-release/publish-action@v9
uses: python-semantic-release/publish-action@v9.14.0
if: steps.release.outputs.released == 'true'
with:
github_token: ${{ secrets.CFL_BOT_GITHUB_TOKEN }}
Expand Down

0 comments on commit f208784

Please sign in to comment.