@@ -11,98 +11,16 @@ permissions:
11
11
contents : read
12
12
13
13
jobs :
14
- test :
15
- name : Test / OS ${{ matrix.os }} / Python ${{ matrix.python-version }}
16
- strategy :
17
- matrix :
18
- os : [ubuntu-latest]
19
- python-version : ["3.9", "3.10", "3.11", "3.12", "3.13"]
20
- runs-on : ${{ matrix.os }}
21
- steps :
22
- - name : Clone Repository
23
- uses : actions/checkout@v4
24
-
25
- - name : Set up Python ${{ matrix.python-version }}
26
- uses : actions/setup-python@v5
27
- with :
28
- python-version : ${{ matrix.python-version }}
29
-
30
- - name : Set up Poetry
31
- run : pipx install poetry==1.8.5 --python python${{ matrix.python-version }}
32
-
33
- - name : Run Tests
34
- run : make run_tests
35
-
36
- - name : Upload coverage to Coveralls
37
- uses : coverallsapp/github-action@v2
38
- with :
39
- github-token : ${{ secrets.GITHUB_TOKEN }}
40
- flag-name : run-${{ join(matrix.*, '-') }}
41
- parallel : true
42
-
43
- finish_tests :
44
- needs : test
45
- name : Upload tests coveralls results
46
- if : ${{ always() }}
47
- runs-on : ubuntu-latest
48
- steps :
49
- - name : Coveralls Finished
50
- uses : coverallsapp/github-action@v2
51
- with :
52
- github-token : ${{ secrets.GITHUB_TOKEN }}
53
- parallel-finished : true
54
- carryforward : " run-ubuntu-latest-3.9,run-ubuntu-latest-3.10,run-ubuntu-latest-3.11,run-ubuntu-latest-3.12,run-ubuntu-latest-3.13"
55
-
56
- release-please :
57
- needs : test
58
- if : ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' && github.repository_owner == 'supabase' }}
59
- runs-on : ubuntu-latest
60
- name : " Bump version and create changelog"
61
- permissions :
62
- id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
63
- contents : write # needed for github actions bot to write to repo
64
- pull-requests : write
65
- steps :
66
- - uses : googleapis/release-please-action@v4
67
- id : release
68
- with :
69
- target-branch : ${{ github.ref_name }}
70
- publish :
71
- needs : release-please
72
- if : ${{ startsWith(github.event.head_commit.message, 'chore(main)') && github.ref == 'refs/heads/main' && github.event_name == 'push' && github.repository_owner == 'supabase' }}
73
- runs-on : ubuntu-latest
74
- name : " supabase_functions: Publish to PyPi"
75
- environment :
76
- name : pypi
77
- url : https://pypi.org/p/supabase_functions
78
- permissions :
79
- id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
80
- contents : write # needed for github actions bot to write to repo
81
- steps :
82
- - name : Set up Python 3.11
83
- uses : actions/setup-python@v5
84
- with :
85
- python-version : 3.11
14
+ ci :
15
+ uses : supabase/actions/.github/workflows/python-ci.yml@main
16
+ with :
17
+ enable-publish : true
18
+ package-name : ' supabase_functions'
19
+ secrets :
20
+ COVERALLS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
86
21
87
- - name : Clone Repository
88
- uses : actions/checkout@v4
89
- with :
90
- ref : ${{ github.ref }}
91
- fetch-depth : 0
92
-
93
- - name : Set up Poetry
94
- run : pipx install poetry==1.8.5 --python python3.11
95
-
96
- - name : Install dependencies
97
- run : poetry install
98
-
99
- - name : Build package dist directory
100
- run : poetry build
101
-
102
- - name : Publish package distributions to PyPI
103
- uses : pypa/gh-action-pypi-publish@release/v1
104
22
publish_legacy :
105
- needs : publish
23
+ needs : ci
106
24
if : ${{ startsWith(github.event.head_commit.message, 'chore(main)') && github.ref == 'refs/heads/main' && github.event_name == 'push' && github.repository_owner == 'supabase' }}
107
25
runs-on : ubuntu-latest
108
26
name : " supafunc: Publish to PyPi"
0 commit comments