Skip to content

COM-12827-Automate release process completely with semantic commits of GHA. #982

COM-12827-Automate release process completely with semantic commits of GHA.

COM-12827-Automate release process completely with semantic commits of GHA. #982

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: fluster
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
commit-validation:
name: Validate commit messages
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install pre-commit
run: pip install pre-commit==2.21.0
- name: Install pre-commit hooks
run: pre-commit install
- name: Get last commit message (skip merge commits)
id: get_commit_message
run: |
git fetch --prune --unshallow
git log --no-merges -1 --pretty=%B > commit-msg.txt
- name: Validate commit message
run: |
pre-commit run --hook-stage commit-msg --commit-msg-filename commit-msg.txt --files commit-msg.txt
min_linux:
name: linux with min supported deps
runs-on: ubuntu-20.04
needs:
- commit-validation
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.7
uses: actions/setup-python@v5
with:
python-version: 3.7
- name: Install dependencies
run: |
make install_deps
sudo apt update && sudo apt install gstreamer1.0-tools gstreamer1.0-libav gstreamer1.0-plugins-bad ffmpeg vpx-tools aom-tools
- name: Check
run: |
make check
- name: Test Build the wheel
run: |
pip wheel .
linux:
runs-on: ubuntu-24.04
needs:
- commit-validation
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: 3.13
- name: Install dependencies
run: |
make install_deps
sudo apt update && sudo apt install gstreamer1.0-tools gstreamer1.0-libav gstreamer1.0-plugins-bad ffmpeg vpx-tools aom-tools
- name: Check
run: |
make check
- name: Test Build the wheel
run: |
pip wheel .
windows:
runs-on: windows-latest
needs:
- commit-validation
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.7
uses: actions/setup-python@v5
with:
python-version: 3.7
- name: Install dependencies
run: |
make install_deps
- name: Check
run: |
make check
- name: Test Build the wheel
run: |
pip wheel .