Skip to content

chore(deps): Bump pypa/gh-action-pypi-publish from 1.10.3 to 1.11.0 in the production-dependencies group #18

chore(deps): Bump pypa/gh-action-pypi-publish from 1.10.3 to 1.11.0 in the production-dependencies group

chore(deps): Bump pypa/gh-action-pypi-publish from 1.10.3 to 1.11.0 in the production-dependencies group #18

name: PR Mac Build
permissions:
contents: write
packages: write
issues: read
checks: write
pull-requests: write
on:
workflow_dispatch:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
name: test with ${{ matrix.py }} on mac
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
py:
- "3.12"
- "3.11"
- "3.10"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Install prerequisites
run: |
brew install mysql-client
- 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
export PKG_CONFIG_PATH=/usr/local/opt/mysql-client/lib/pkgconfig
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: |
export PKG_CONFIG_PATH=/usr/local/opt/mysql-client/lib/pkgconfig
tox
- name: Build documentation
run: |
export PKG_CONFIG_PATH=/usr/local/opt/mysql-client/lib/pkgconfig
tox -e docs
- name: Build distributable packages
run: |
export PKG_CONFIG_PATH=/usr/local/opt/mysql-client/lib/pkgconfig
tox -e package
- name: Verify pex package is runnable
run: ./dist/seriesmgmt_.pex
- name: Verify package is runnable
run: |
export PKG_CONFIG_PATH=/usr/local/opt/mysql-client/lib/pkgconfig
pip install -e .
python scripts/test.py -h