Skip to content

[WIP] ci: Add Python package workflow #2

[WIP] ci: Add Python package workflow

[WIP] ci: Add Python package workflow #2

Workflow file for this run

name: Package
on:
push:
branches:
- main-test
- v*-branch
pull_request:
branches:
- main-test
- v*-branch
workflow_call:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
package:
name: Package
runs-on: ubuntu-22.04
steps:
- name: Set up Python

Check failure on line 24 in .github/workflows/package.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/package.yml

Invalid workflow file

You have an error in your yaml syntax on line 24
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Check Python version
run: |
set -x
python --version
pip --version
python -c "import platform; print(platform.architecture())"
- name: Install Python dependencies
run: |
pip install --user setuptools wheel
- name: Check out Kconfiglib source code
uses: actions/checkout@v4
- name: Build source distribution
run: |
python setup.py sdist
- name: Build built distribution wheel
run: |
python setup.py bdist_wheel
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/*