Skip to content

[SDK-20] chore: Adding Commit Message regex check to pipeline #18

[SDK-20] chore: Adding Commit Message regex check to pipeline

[SDK-20] chore: Adding Commit Message regex check to pipeline #18

Workflow file for this run

name: Python CI
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
ASTEROID_API_URL: "TEST"
ASTEROID_API_KEY: "TEST"
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history for the specified branches
ref: ${{ github.head_ref }}
fetch-tags: false
- name: Fetch main branch
run: git fetch origin main
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
pip install .
- name: Run commit message check
run: |
./scripts/check_commit_message.sh
- name: Run tests
run: |
export PYTHONPATH=$(pwd)
pytest