Skip to content

Merge branch 'feature/release-artifacts' of github.com:muselab-d2x/Cu… #7

Merge branch 'feature/release-artifacts' of github.com:muselab-d2x/Cu…

Merge branch 'feature/release-artifacts' of github.com:muselab-d2x/Cu… #7

name: Release Test Python 🐍🔧
on:
push:
branches:
- "**"
jobs:
test_python_packaging:
name: 🐍 Test Packaging with Hatch
runs-on: ${{ github.repository_owner == 'SFDO-Tooling' && 'SFDO-Tooling-Ubuntu' || 'ubuntu-latest' }}
steps:
- name: 📦 Checkout Code
uses: actions/checkout@v3
- name: 🐍 Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
cache: pip
- name: 🛠️ Install Hatch
run: |
echo "Installing Hatch..."
pip install hatch
- name: 🏗️ Build Packages
run: |
echo "Building packages..."
hatch build
- name: 🧪 Test Built Packages
run: |
echo "Testing built packages..."
pip install dist/cumulusci*.whl
pip show cumulusci
pip uninstall -y cumulusci
create_and_store_artifacts:
name: 📦 Create and Store Artifacts
runs-on: ${{ github.repository_owner == 'SFDO-Tooling' && 'SFDO-Tooling-Ubuntu' || 'ubuntu-latest' }}
needs: test_python_packaging
steps:
- name: 🔗 Call Create Artifacts Workflow
uses: ./.github/workflows/create_artifacts.yml
with:
python-version: "3.8"
secrets:

Check failure on line 44 in .github/workflows/release_test_python.yml

View workflow run for this annotation

GitHub Actions / Release Test Python 🐍🔧

Invalid workflow file

The workflow is not valid. .github/workflows/release_test_python.yml (Line: 44, Col: 15): Unexpected value 'secrets'
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 📤 Download Artifacts
uses: actions/download-artifact@v3
with:
name: build-artifacts
- name: 📥 Store Artifacts
uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: build-artifacts/