Default to CY24 and drop support for CY22 #104
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: Code quality | |
on: pull_request | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
pylint: | |
name: Pylint | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/openassetio/openassetio/openassetio-build:2024.5.rc3 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install -r resources/build/linter-requirements.txt | |
python -m pip install -r tests/requirements.txt | |
- name: Lint | |
uses: TheFoundryVisionmongers/[email protected] | |
with: | |
pylint-disable: fixme # We track 'todo's through other means | |
pylint-paths: > | |
tests | |
black: | |
runs-on: ubuntu-22.04 | |
name: Python formatting | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install -r resources/build/linter-requirements.txt | |
- name: Check Python formatting | |
run: black tests --check . | |
build-openassetio: | |
name: Build OpenAssetIO | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/openassetio/openassetio/openassetio-build:2024.5.rc3 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
uses: ./.github/build_openassetio | |
build-openassetio-mediacreation: | |
name: Build OpenAssetIO-MediaCreation | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/openassetio/openassetio/openassetio-build:2024.5.rc3 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
uses: ./.github/build_openassetio_mediacreation | |
cpp-linters: | |
name: C++ linters | |
runs-on: ubuntu-latest | |
needs: build-openassetio | |
container: | |
image: ghcr.io/openassetio/openassetio/openassetio-build:2024.5.rc3 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
# Configure the system and install library dependencies via | |
# conan packages. | |
run: | | |
python -m pip install -r resources/build/linter-requirements.txt | |
clang-tidy --version | |
clang-format --version | |
cpplint --version | |
- name: Get OpenAssetIO | |
uses: actions/download-artifact@v3 | |
with: | |
name: OpenAssetIO Build | |
path: ./openassetio-build | |
- name: Get OpenAssetIO-MediaCreation | |
uses: actions/download-artifact@v3 | |
with: | |
name: OpenAssetIO-MediaCreation Build | |
path: ./openassetio-mediacreation-build | |
- name: Configure CMake build | |
run: > | |
cmake -DCMAKE_PREFIX_PATH="./openassetio-build;./openassetio-mediacreation-build" | |
-S . -B build -G Ninja | |
--install-prefix ${{ github.workspace }}/dist | |
--preset lint | |
- name: Build and lint | |
run: | | |
cmake --build build |