Skip to content

Feature/better release pipelines #16

Feature/better release pipelines

Feature/better release pipelines #16

name: PR Linxu Build
permissions:
contents: write
packages: write
issues: read
checks: write
pull-requests: write
on:
workflow_dispatch:
pull_request:
jobs:
build:
name: test with ${{ matrix.py }} on linux
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
py:
- "3.13.0-rc.3"
- "3.12"
- "3.11"
- "3.10"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup python for test ${{ matrix.py }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.py }}
- name: Install tox and pex dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pex tox tox-gh setuptools_scm
- name: Save package version for later
run: |
echo "local_version=$(python -m setuptools_scm)" >> $GITHUB_OUTPUT
id: versioncheck
- name: Build Software
run: |
tox
- name: Build documentation
run: |
tox -e docs
- name: Build distributable packages
run: |
tox -e package
env:
PACKAGE_VERSION: ${{ steps.versioncheck.outputs.local_version }}
- name: Verify pex package is runnable
run: ./dist/seriesmgmt_${{ steps.versioncheck.outputs.local_version }}.pex
- name: Verify package is runnable
run: |
pip install -e .
python scripts/test.py -h