SDK-35 - Gemini #30
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: 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: Run commit message check | |
run: | | |
./scripts/check_commit_message.sh | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel | |
pip install . | |
- name: Run tests | |
run: | | |
export PYTHONPATH=$(pwd) | |
pytest |