Skip to content

Update gh scripts

Update gh scripts #36

name: Publish Python 🐍 distributions πŸ“¦ to PyPI
on:
push:
tags:
- 'v*'
branches:
- master
- 'stable/**'
jobs:
build-n-publish:

Check failure on line 12 in .github/workflows/python-publish.yml

View workflow run for this annotation

GitHub Actions / Publish Python 🐍 distributions πŸ“¦ to PyPI

Invalid workflow file

The workflow is not valid. .github/workflows/python-publish.yml (Line: 12, Col: 3): The workflow must contain at least one job with no dependencies.
name: Build and publish Python 🐍 distributions πŸ“¦ to PyPI
runs-on: ubuntu-latest
needs: regression_job
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install deps
run: >-
pip install cocotb cocotb-bus cocotb-test
- name: Install pypa/setuptools
run: >-
python -m
pip install wheel
- name: Build a binary wheel
run: >-
python setup.py sdist bdist_wheel
- name: Publish distribution πŸ“¦ to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}