Skip to content

Commit 7e01ff9

Browse files
authored
Merge pull request #16 from martinRenou/add_galata_bot
Add galata bot
2 parents a5f5efc + 869d171 commit 7e01ff9

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Update Galata References
2+
3+
on:
4+
issue_comment:
5+
types: [created, edited]
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
defaults:
12+
run:
13+
shell: bash -l {0}
14+
15+
jobs:
16+
update-reference-screenshots:
17+
name: Update Galata References
18+
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, 'update galata references') }}
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v3
24+
with:
25+
token: ${{ secrets.GITHUB_TOKEN }}
26+
27+
- name: Configure git to use https
28+
run: git config --global hub.protocol https
29+
30+
- name: Checkout the branch from the PR that triggered the job
31+
run: hub pr checkout ${{ github.event.issue.number }}
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
35+
- name: Install Conda environment with Micromamba
36+
uses: mamba-org/provision-with-micromamba@main
37+
with:
38+
environment-name: bqplot-test
39+
environment-file: test-environment.yml
40+
channels: conda-forge
41+
42+
- name: Install bqplot
43+
run: pip install .
44+
45+
- name: Install dependencies
46+
shell: bash -l {0}
47+
working-directory: ui-tests
48+
env:
49+
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
50+
run: jlpm install
51+
52+
- uses: jupyterlab/maintainer-tools/.github/actions/update-snapshots@main
53+
with:
54+
npm_client: jlpm
55+
github_token: ${{ secrets.GITHUB_TOKEN }}
56+
start_server_script: 'null'
57+
test_folder: ui-tests

0 commit comments

Comments
 (0)