Release 1.0.0rc3 (#110) #88
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PyPI package | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
build-n-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10" | |
- name: Install pypa/build | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install build | |
- name: Build binary wheel and source tarbal | |
run: python -m build --sdist --wheel --outdir dist/ . | |
- name: Publish distribution to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} | |
test-from-pypi: | |
needs: build-n-publish | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{matrix.python-version}} | |
- name: Install dependencies and ScriptEngine | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install "scriptengine>=1.0.0rc1" | |
- name: Test run ScriptEngine cli (version) | |
run: | | |
se --version | |
- name: Test run ScriptEngine cli (help) | |
run: | | |
se --help |