Skip to content

Release 0.5.0

Release 0.5.0 #1

# Linux: Build the package with graph-cut support and runs the graphcut tests
# This test is kept separate, as the graphcut functionality is optional and unstable
# Triggered whenever a PR into the main or a Release* branch is opened
# Triggered for each new published release
# Note: the dependency libboost_python will always be installed against the OS's main python version,
# independent of the python version set-up. They are 22.04 = 3.10 and 20.04 = 3.8.
name: Build and test (w graphcut)
on:
release:
types: [published]
pull_request:
branches: [ "master", "Release*" ]
permissions:
contents: read
jobs:
test-ubuntu-22.04:

Check failure on line 21 in .github/workflows/linux-build-test-gc.yml

View workflow run for this annotation

GitHub Actions / Build and test (w graphcut)

Invalid workflow file

The workflow is not valid. .github/workflows/linux-build-test-gc.yml (Line: 21, Col: 3): The identifier 'test-ubuntu-22.04' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters. .github/workflows/linux-build-test-gc.yml (Line: 38, Col: 3): The identifier 'test-ubuntu-20.04' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters.
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: 3.10
- name: Install system dependencies for graphcut functionality
run: sudo apt-get install -y libboost-python-dev build-essential
- name: Install with test dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -v .[test]
- name: Test with pytest (graphcut test only)
run: cd tests && pytest graphcut_/*
test-ubuntu-20.04:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install system dependencies for graphcut functionality
run: sudo apt-get install -y libboost-python-dev build-essential
- name: Install with test dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -v .[test]
- name: Test with pytest (graphcut test only)
run: cd tests && pytest graphcut_/*