Skip to content

Add test code if QA data was created from a corpus (#382) #5

Add test code if QA data was created from a corpus (#382)

Add test code if QA data was created from a corpus (#382) #5

Workflow file for this run

name: Publish Python 🐍 distributions 📦 to PyPI
on:
push:
branches:
- main
jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v4
# retrieve your distributions here
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install setuptools wheel twine
- name: Check for VERSION file change
id: version_changed
run: |
if git diff --name-only HEAD^ HEAD | grep 'VERSION'; then
echo "::set-output name=changed::true"
fi
- name: Build
if: steps.version_changed.outputs.changed == 'true'
run: |
python -m build
- name: Publish package distributions to PyPI
if: steps.version_changed.outputs.changed == 'true'
uses: pypa/gh-action-pypi-publish@release/v1