Implement page-per-dataclass with field linking. #142
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: 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-20.04 | |
steps: | |
- name: Noop | |
run: "true" | |
ci: | |
name: (${{ matrix.os }}) CI | |
needs: org-check | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-22.04, macos-11, macos-13-aarch64, windows-2022] | |
env: | |
SCIENCE_AUTH_API_GITHUB_COM_BEARER: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Setup Python 3.11 | |
uses: actions/setup-python@v4 | |
if: matrix.os != 'macos-13-aarch64' | |
with: | |
python-version: 3.11 | |
- name: Setup Nox | |
run: pip install nox | |
- name: Checkout Lift | |
uses: actions/checkout@v3 | |
- name: Check Formatting & Lints | |
run: nox -e lint | |
- name: Configure Windows pytest short tmp dir path | |
if: matrix.os == 'windows-2022' | |
run: | | |
echo PYTEST_ADDOPTS="--basetemp C:\\tmp\\pytest" >> ${GITHUB_ENV} | |
- name: Unit Tests | |
run: nox -e test -- -vvs | |
- name: Build & Package | |
run: nox -e package | |
- name: Generate Doc Site | |
# We use a fork of https://github.com/vsalvino/sphinx-library currently which necessitates | |
# a VCS requirement and that nets a non-universal lock item; so we skip for now. | |
if: matrix.os != 'windows-2022' | |
run: nox -e doc linkcheck |