-
-
Notifications
You must be signed in to change notification settings - Fork 2k
45 lines (38 loc) · 1.18 KB
/
post-merge-tasks.yml
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
name: Post Merge Tasks
on:
workflow_call:
push:
branches:
- dev
- main
jobs:
post-merge-cleanup-notebooks:
strategy:
matrix:
python-version: ["3.12"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.SYFT_BOT_COMMIT_TOKEN }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install pip packages
run: |
python -m pip install --upgrade pip
pip install uv==0.2.17 tox tox-uv==1.9.0
uv --version
- name: Check and Bump Protocol Version
run: |
tox -e syft.protocol.check
- name: Commit changes to bump protocol and remove notebooks
uses: EndBug/add-and-commit@v9
with:
author_name: ${{ secrets.OM_BOT_NAME }}
author_email: ${{ secrets.OM_BOT_EMAIL }}
message: "bump protocol and remove notebooks"
remove: "-r notebooks/Experimental/ --ignore-unmatch"
add: "['packages/syft/src/syft/protocol/protocol_version.json']"
commit: "-a"