Skip to content

Commit

Permalink
some mistakes in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jessdtate committed Oct 11, 2023
1 parent ab296d3 commit 0617fff
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/pypackage.yml
@@ -1,6 +1,14 @@
name: Build Wheel
on: [workflow_call]

on:
workflow_call:
inputs:
config-path:
required: true
type: string
secrets:
envPAT:
required: true

jobs:
build-wheel:
name: Build Wheel for Testing
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/pypublish.yml
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
build-wheel:
uses: .github/workflows/pypackage.yml
uses: ./.github/workflows/pypackage.yml
upload_pypi:
name: Publish build to TestPyPI and PyPI
needs: [build-wheel]
Expand All @@ -16,12 +16,14 @@ jobs:
url: https://pypi.org/p/UncertainSCI
permissions:
id-token: write
if: startsWith(github.event.ref, 'refs/tags')
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist
configuration-path: ${{ inputs.config-path }}
secrets:
envPAT: ${{ secrets.envPAT }}
- name: Upload to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/pythonapp.yml
@@ -1,6 +1,3 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Build

on: [push, pull_request]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/testpackage.yml
Expand Up @@ -3,5 +3,5 @@ on: [push, pull_request]

jobs:
buildwheel:
uses: .github/workflows/pypackage.yml
uses: ./.github/workflows/pypackage.yml

0 comments on commit 0617fff

Please sign in to comment.