jeuko's picture
Sync from GitHub (main)
8018595 verified
name: Main Workflow
on:
push:
concurrency:
group: ${{ github.ref_name }}
cancel-in-progress: true
jobs:
pre-commit:
runs-on:
group: kao-products-runners
labels: instadeep-ci-4
container:
image: ghcr.io/catthehacker/ubuntu:runner-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Pre-commit
uses: ./.github/actions/tools/pre-commit
pytest:
runs-on:
group: kao-products-runners
labels: instadeep-ci
container:
image: ghcr.io/catthehacker/ubuntu:runner-latest
env:
CI: 1
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Pytest
uses: ./.github/actions/tools/pytest
hugging-face:
if: github.ref == 'refs/heads/main'
runs-on:
group: kao-products-runners
labels: instadeep-ci
container:
image: ghcr.io/catthehacker/ubuntu:runner-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
ref: ${{ github.head_ref || github.ref_name }}
fetch-depth: 0
lfs: true
- name: Hugging Face
uses: ./.github/actions/tools/huggingface
with:
token: ${{ secrets.HF_TOKEN }}
space: "InstaDeepAI/sentinel"
branch: main
runtime-secrets: |
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}