forked from speced/bikeshed
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 1 KB
/
update-tests.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
name: Daily test sync
on:
schedule:
- cron: '20 20 * * *'
workflow_dispatch: {}
jobs:
update:
runs-on: ubuntu-latest
if: github.repository_owner == 'tabatkins'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.8
- name: install dependencies
run: |
pip install -r .github/workflows/update-tests/requirements.txt
pip install --editable .
bikeshed update
- name: update tests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
rm -rf tests/github
python .github/workflows/update-tests/update.py
# paths need to be relative to tests/
(cd tests; find github -type f) | xargs bikeshed test --rebase
- name: Create/Update PR
uses: peter-evans/create-pull-request@v5
with:
branch: daily-test-sync
commit-message: 'chore: Sync Bikeshed files from specs.data list'
title: 'Daily sync of Bikeshed files from specs.data'