forked from TimChild/reflex-clerk-api
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (51 loc) · 1.56 KB
/
_reusable-ci.yml
File metadata and controls
57 lines (51 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Reusable CI
on:
workflow_call:
inputs:
checkout_ref:
description: 'Git ref to checkout'
required: false
type: string
default: ''
checkout_repository:
description: 'Repository to checkout (for forks)'
required: false
type: string
default: ''
check_type:
description: 'Type of checks to run: basic or full'
required: true
type: string
environment:
description: 'Environment to use for secrets (only for full checks)'
required: false
type: string
default: ''
jobs:
ci:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
python-versions: ["3.11", "3.12", "3.13"]
environment: ${{ inputs.environment || null }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.checkout_ref || github.sha }}
repository: ${{ inputs.checkout_repository || github.repository }}
- name: Setup Python Environment
uses: ./.github/actions/setup-python-env
with:
python-version: ${{ matrix.python-versions }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Basic Checks
if: inputs.check_type == 'basic'
uses: ./.github/actions/basic-checks
- name: Run Full Checks
if: inputs.check_type == 'full'
uses: ./.github/actions/full-checks
with:
clerk-publishable-key: ${{ vars.CLERK_PUBLISHABLE_KEY }}
clerk-secret-key: ${{ secrets.CLERK_SECRET_KEY }}