Upgrade to PBS 20241206 / Python 3.12.8. (#102) #319
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: CI | |
on: [push, pull_request] | |
defaults: | |
run: | |
shell: bash | |
concurrency: | |
group: CI-${{ github.ref }} | |
# Queue on all branches and tags, but only cancel overlapping PR burns. | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/') }} | |
jobs: | |
org-check: | |
name: Check GitHub Organization | |
if: github.repository_owner == 'a-scie' | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Noop | |
run: "true" | |
ci: | |
name: (${{ matrix.os }}) CI | |
needs: org-check | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
# N.B.: macos-13 is the oldest non-deprecated Intel Mac runner and macos-14 is the oldest | |
# non-deprecated ARM Mac runner. | |
os: [ ubuntu-22.04, linux-arm64, macos-13, macos-14, windows-2022, windows-arm64 ] | |
env: | |
SCIENCE_AUTH_API_GITHUB_COM_BEARER: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Setup Python 3.12 | |
if: matrix.os != 'linux-arm64' && matrix.os != 'windows-arm64' | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Setup Python 3.12 | |
if: matrix.os == 'linux-arm64' | |
run: | | |
python3.12 -m venv .venv | |
echo "$(pwd)/.venv/bin" >> "${GITHUB_PATH}" | |
- name: Setup Python 3.12 | |
if: matrix.os == 'windows-arm64' | |
run: | | |
py -3.12 -m venv .venv | |
echo "$(pwd)/.venv/Scripts" >> "${GITHUB_PATH}" | |
- name: Setup Nox | |
run: pip install nox | |
- name: Checkout Lift | |
uses: actions/checkout@v4 | |
- name: Check Formatting & Lints | |
run: nox -e lint | |
- name: Configure Windows pytest short tmp dir path | |
if: matrix.os == 'windows-2022' || matrix.os == 'windows-arm64' | |
run: | | |
mkdir -p C:/tmp/gha | |
echo PYTEST_ADDOPTS="--basetemp C:/tmp/gha/pytest" >> ${GITHUB_ENV} | |
echo SCIE_BASE=C:/tmp/gha/nce >> ${GITHUB_ENV} | |
- name: Unit Tests | |
run: nox -e test -- -vvs | |
- name: Build & Package | |
run: nox -e package | |
- name: Generate Doc Site | |
run: nox -e doc linkcheck |