misc maintenance #241
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: Python build | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
schedule: | |
- cron: "0 4 * * MON" | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ["3.12"] | |
env: | |
TZ: Europe/Berlin | |
FORCE_COLOR: true | |
steps: | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Update pip etc. | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade setuptools wheel build twine | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
fetch-tags: true | |
- name: Build sdist | |
run: python -m build --sdist | |
- name: Check sdist | |
run: twine check --strict dist/* | |
- name: Install sdist | |
run: python -m pip install ./dist/pybv-* | |
- name: Clean up working directory | |
run: rm -rf ./* | |
- name: Try importing pybv | |
run: python -c 'import pybv; print(pybv.__version__)' | |
- name: Remove sdist install | |
run: python -m pip uninstall -y pybv | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
fetch-tags: true | |
- name: Build wheel | |
run: python -m build --wheel | |
- name: Check wheel | |
run: twine check --strict dist/* | |
- name: Install wheel | |
run: python -m pip install ./dist/pybv-*.whl | |
- name: Clean up working directory | |
run: rm -rf ./* | |
- name: Try importing pybv | |
run: python -c 'import pybv; print(pybv.__version__)' | |
- name: Remove wheel install | |
run: python -m pip uninstall -y pybv |