Skip to content

Release tests

Release tests #24

Workflow file for this run

# must do before using this action:
# - set up RELEASE_TOKEN in secrets of the repository avocado-framework/avocado
# - set up RTD_TOKEN in secrets to update readthedocs
# - set up two tokens for twine: PYPI_USER and PYPI_PASSWD
name: Release tests
on:
workflow_dispatch:
inputs:
version:
description: 'Release version'
required: true
default: '0.0'
devel_name:
description: 'Developer Name'
required: true
default: 'Avocado Developer'
devel_mail:
description: 'Developer mail'
required: true
default: '[email protected]'
rtd_project:
description: 'readthedocs project name'
required: true
default: 'avocado-framework'
jobs:
build-and-publish-eggs:

Check failure on line 29 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release tests

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 29, Col: 3): The workflow must contain at least one job with no dependencies.
name: Build eggs and publish them
runs-on: ubuntu-20.04
needs: release
strategy:
matrix:
python-version: [3.8.16, 3.9.16, 3.10.9, 3.11.1, 3.12.0]
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
ref: ${{ github.event.inputs.version }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Build eggs
run: |
if python -c 'import sys; exit(0) if sys.version_info.minor > 11 else exit(1)' ; then
pip install setuptools
fi
make -f Makefile.gh build-egg
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.RELEASE_TOKEN }}
file: ${{ github.workspace }}/EGG_UPLOAD/avocado_framework*egg
tag: ${{ github.event.inputs.version }}
overwrite: true
file_glob: true