Skip to content

Commit 56d2090

Browse files
authored
Update CI to target 0.2 branch, remove merge queue (#3656)
1 parent 21a5a13 commit 56d2090

11 files changed

+27
-111
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@ name: Build
55

66
on:
77
push:
8-
branches: ["main"]
8+
branches: ["0.2"]
99
pull_request:
10-
branches: ["main"]
11-
merge_group:
12-
types: [checks_requested]
10+
branches: ["0.2"]
1311

1412
concurrency:
1513
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
16-
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
14+
cancel-in-progress: ${{ github.ref != 'refs/heads/0.2' }}
1715
permissions: {}
1816
jobs:
1917
paths-filter:

.github/workflows/contrib-openai.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: OpenAI4ContribTests
55

66
on:
77
pull_request:
8-
branches: ["main"]
8+
branches: ["0.2"]
99
paths:
1010
- "autogen/**"
1111
- "test/agentchat/contrib/**"

.github/workflows/contrib-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: ContribTests
55

66
on:
77
pull_request:
8-
branches: ["main"]
8+
branches: ["0.2"]
99
paths:
1010
- "autogen/**"
1111
- "test/agentchat/contrib/**"
@@ -16,7 +16,7 @@ on:
1616

1717
concurrency:
1818
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
19-
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
19+
cancel-in-progress: ${{ github.ref != 'refs/heads/0.2' }}
2020
permissions:
2121
{}
2222
# actions: read

.github/workflows/deploy-website.yml

Lines changed: 4 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,18 @@ name: docs
22

33
on:
44
pull_request:
5-
branches: [main]
6-
path:
5+
branches: ["0.2"]
6+
paths:
77
- "autogen/*"
88
- "website/*"
99
- ".github/workflows/deploy-website.yml"
1010
push:
11-
branches: [main]
12-
path:
11+
branches: ["0.2"]
12+
paths:
1313
- "autogen/*"
1414
- "website/*"
1515
- ".github/workflows/deploy-website.yml"
1616
workflow_dispatch:
17-
merge_group:
18-
types: [checks_requested]
1917
permissions:
2018
id-token: write
2119
pages: write
@@ -67,57 +65,3 @@ jobs:
6765
npm i --legacy-peer-deps
6866
npm run build
6967
fi
70-
gh-release:
71-
if: github.event_name != 'pull_request'
72-
runs-on: ubuntu-latest
73-
defaults:
74-
run:
75-
working-directory: website
76-
steps:
77-
- uses: actions/checkout@v4
78-
with:
79-
lfs: true
80-
- uses: actions/setup-node@v4
81-
with:
82-
node-version: 18.x
83-
- name: setup python
84-
uses: actions/setup-python@v5
85-
with:
86-
python-version: "3.8"
87-
- name: pydoc-markdown install
88-
run: |
89-
python -m pip install --upgrade pip
90-
pip install pydoc-markdown pyyaml termcolor
91-
# Pin databind packages as version 4.5.0 is not compatible with pydoc-markdown.
92-
pip install databind.core==4.4.2 databind.json==4.4.2
93-
- name: pydoc-markdown run
94-
run: |
95-
pydoc-markdown
96-
- name: quarto install
97-
working-directory: ${{ runner.temp }}
98-
run: |
99-
wget -q https://github.com/quarto-dev/quarto-cli/releases/download/v1.5.23/quarto-1.5.23-linux-amd64.tar.gz
100-
tar -xzf quarto-1.5.23-linux-amd64.tar.gz
101-
echo "$(pwd)/quarto-1.5.23/bin/" >> $GITHUB_PATH
102-
- name: Process notebooks
103-
run: |
104-
python process_notebooks.py render
105-
- name: Build website
106-
run: |
107-
if [ -e yarn.lock ]; then
108-
yarn install --frozen-lockfile --ignore-engines
109-
yarn build
110-
elif [ -e package-lock.json ]; then
111-
npm ci
112-
npm run build
113-
else
114-
npm i --legacy-peer-deps
115-
npm run build
116-
fi
117-
- name: Upload artifact
118-
uses: actions/upload-pages-artifact@v3
119-
with:
120-
path: "website/build"
121-
- name: Deploy to GitHub Pages
122-
id: deployment
123-
uses: actions/deploy-pages@v4

.github/workflows/dotnet-build.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@ name: dotnet-ci
66
on:
77
workflow_dispatch:
88
pull_request:
9-
branches: [ "main" ]
9+
branches: [ "0.2" ]
1010
push:
11-
branches: [ "main" ]
12-
merge_group:
13-
types: [checks_requested]
11+
branches: [ "0.2" ]
1412

1513
concurrency:
1614
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
17-
cancel-in-progress: ${{ github.ref != 'refs/heads/main' || github.ref != 'refs/heads/dotnet' }}
15+
cancel-in-progress: ${{ github.ref != 'refs/heads/0.2' || github.ref != 'refs/heads/dotnet' }}
1816

1917
permissions:
2018
contents: read
@@ -122,7 +120,7 @@ jobs:
122120
defaults:
123121
run:
124122
working-directory: dotnet
125-
if: success() && (github.ref == 'refs/heads/main')
123+
if: success() && (github.ref == 'refs/heads/0.2')
126124
needs: aot-test
127125
steps:
128126
- uses: actions/checkout@v4
@@ -228,4 +226,4 @@ jobs:
228226
env:
229227
MYGET_TOKEN: ${{ secrets.MYGET_TOKEN }}
230228
continue-on-error: true
231-
229+

.github/workflows/lfs-check.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: "Git LFS Check"
2-
3-
on: pull_request
2+
on:
3+
pull_request:
4+
branches: ["0.2"]
45
permissions: {}
56
jobs:
67
lfs-check:

.github/workflows/openai.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: OpenAI
55

66
on:
77
pull_request:
8-
branches: ["main"]
8+
branches: ["0.2"]
99
paths:
1010
- "autogen/**"
1111
- "test/**"

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: Code formatting
33
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
44
on: # Trigger the workflow on pull request or merge
55
pull_request:
6-
merge_group:
7-
types: [checks_requested]
6+
branches: ["0.2"]
87

98
defaults:
109
run:

.github/workflows/python-package.yml

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,10 @@
55
name: python-package
66

77
on:
8-
release:
9-
types: [published]
10-
workflow_dispatch:
8+
push:
9+
tags:
10+
- "0.2.*"
1111
permissions: {}
12-
# actions: read
13-
# checks: read
14-
# contents: read
15-
# deployments: read
1612
jobs:
1713
deploy:
1814
strategy:
@@ -28,26 +24,6 @@ jobs:
2824
steps:
2925
- name: Checkout
3026
uses: actions/checkout@v4
31-
# - name: Cache conda
32-
# uses: actions/cache@v4
33-
# with:
34-
# path: ~/conda_pkgs_dir
35-
# key: conda-${{ matrix.os }}-python-${{ matrix.python-version }}-${{ hashFiles('environment.yml') }}
36-
# - name: Setup Miniconda
37-
# uses: conda-incubator/setup-miniconda@v2
38-
# with:
39-
# auto-update-conda: true
40-
# auto-activate-base: false
41-
# activate-environment: hcrystalball
42-
# python-version: ${{ matrix.python-version }}
43-
# use-only-tar-bz2: true
44-
- name: Install from source
45-
# This is required for the pre-commit tests
46-
shell: pwsh
47-
run: pip install .
48-
# - name: Conda list
49-
# shell: pwsh
50-
# run: conda list
5127
- name: Build
5228
shell: pwsh
5329
run: |

.github/workflows/samples-tools-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: SamplesToolsTests
55

66
on:
77
pull_request:
8-
branches: ["main"]
8+
branches: ["0.2"]
99
paths:
1010
- "autogen/**"
1111
- "samples/tools/**"
@@ -14,7 +14,7 @@ on:
1414

1515
concurrency:
1616
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
17-
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
17+
cancel-in-progress: ${{ github.ref != 'refs/heads/0.2' }}
1818
permissions: {}
1919
jobs:
2020
SamplesToolsFineTuningTests:

0 commit comments

Comments
 (0)