Skip to content

Commit 623da13

Browse files
authored
Merge pull request #412 from antmicro/umarcor/automerge
ci: add Automerge
2 parents 859b266 + de862e8 commit 623da13

File tree

4 files changed

+46
-7
lines changed

4 files changed

+46
-7
lines changed

.github/workflows/Automerge.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Automerge
2+
3+
on:
4+
pull_request:
5+
push:
6+
schedule:
7+
- cron: '0 0 * * *'
8+
workflow_dispatch:
9+
10+
jobs:
11+
12+
13+
Tests:
14+
if: ${{ !(github.event_name != 'pull_request' && github.actor == 'dependabot[bot]') }}
15+
uses: ./.github/workflows/Tests.yml
16+
17+
Suite:
18+
if: ${{ !(github.event_name != 'pull_request' && github.actor == 'dependabot[bot]') }}
19+
uses: ./.github/workflows/Suite.yml
20+
21+
Automerge:
22+
needs:
23+
- Tests
24+
- Suite
25+
if: github.event_name == 'pull_request' && github.actor == 'dependabot[bot]'
26+
runs-on: ubuntu-latest
27+
name: Automerge dependabot PRs
28+
permissions:
29+
contents: write
30+
31+
steps:
32+
33+
- name: Auto-merge Dependabot PR
34+
run: GITHUB_TOKEN='${{ github.token }}' gh pr merge '${{ github.event.pull_request.html_url }}' --squash

.github/workflows/gh-pages.yml renamed to .github/workflows/Pages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ on:
66
- cron: '0 3 * * *'
77

88
jobs:
9+
910
generate-results-page:
11+
if: ${{ !(github.actor == 'dependabot[bot]') }}
1012
runs-on: ubuntu-latest
1113
steps:
1214
- uses: actions/checkout@v2

.github/workflows/tests.yml renamed to .github/workflows/Suite.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1+
name: Full Test Suite
2+
13
on:
2-
pull_request:
3-
push:
4+
workflow_call:
45
schedule:
56
- cron: '0 */4 * * *'
67

7-
name: Full Test Suite
8-
98
env:
109
timeout: 7200
1110

.github/workflows/ci.yml renamed to .github/workflows/Tests.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
name: CI tests
1+
name: CI Tests
22

3-
on: [push, pull_request]
3+
on:
4+
workflow_call:
45

56
jobs:
67

78
Run-tests:
89
runs-on: ubuntu-latest
910
strategy:
1011
matrix:
11-
python-version: ['3.6', '3.7', '3.8']
12+
python-version:
13+
- '3.6'
14+
- '3.7'
15+
- '3.8'
1216
steps:
1317

1418
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)