| 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-ipw7: |
| 17 |
name: Update Galata References - ipywidgets 7 |
| 18 |
if: > |
| 19 |
( |
| 20 |
github.event.issue.author_association == 'OWNER' || |
| 21 |
github.event.issue.author_association == 'COLLABORATOR' || |
| 22 |
github.event.issue.author_association == 'MEMBER' |
| 23 |
) && github.event.issue.pull_request && contains(github.event.comment.body, 'please update snapshots') |
| 24 |
runs-on: ubuntu-latest |
| 25 |
|
| 26 |
steps: |
| 27 |
- name: Checkout |
| 28 |
uses: actions/checkout@v4 |
| 29 |
with: |
| 30 |
token: ${{ secrets.GITHUB_TOKEN }} |
| 31 |
|
| 32 |
- name: Configure git to use https |
| 33 |
run: git config --global hub.protocol https |
| 34 |
|
| 35 |
- name: Install hub |
| 36 |
run: sudo apt-get update && sudo apt-get install -y hub |
| 37 |
|
| 38 |
- name: Checkout the branch from the PR that triggered the job |
| 39 |
run: hub pr checkout ${{ github.event.issue.number }} |
| 40 |
env: |
| 41 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 42 |
|
| 43 |
- name: Install Conda environment with Micromamba |
| 44 |
uses: mamba-org/setup-micromamba@v2 |
| 45 |
with: |
| 46 |
environment-name: ipydatagrid-test-ipw7 |
| 47 |
environment-file: test-environment-ipyw7.yaml |
| 48 |
|
| 49 |
- name: Install the package |
| 50 |
run: pip install -vv . |
| 51 |
- uses: jupyterlab/maintainer-tools/.github/actions/update-snapshots@v1 |
| 52 |
with: |
| 53 |
github_token: ${{ secrets.GITHUB_TOKEN }} |
| 54 |
server_url: http-get://localhost:8888/ |
| 55 |
test_folder: ui-tests-ipw7 |
| 56 |
|
| 57 |
update-reference-screenshots-ipw8: |
| 58 |
name: Update Galata References - ipywidgets 8 |
| 59 |
if: > |
| 60 |
( |
| 61 |
github.event.issue.author_association == 'OWNER' || |
| 62 |
github.event.issue.author_association == 'COLLABORATOR' || |
| 63 |
github.event.issue.author_association == 'MEMBER' |
| 64 |
) && github.event.issue.pull_request && contains(github.event.comment.body, 'please update snapshots') |
| 65 |
runs-on: ubuntu-latest |
| 66 |
|
| 67 |
steps: |
| 68 |
- name: Checkout |
| 69 |
uses: actions/checkout@v4 |
| 70 |
with: |
| 71 |
token: ${{ secrets.GITHUB_TOKEN }} |
| 72 |
|
| 73 |
- name: Configure git to use https |
| 74 |
run: git config --global hub.protocol https |
| 75 |
|
| 76 |
- name: Install hub |
| 77 |
run: sudo apt-get update && sudo apt-get install -y hub |
| 78 |
|
| 79 |
- name: Checkout the branch from the PR that triggered the job |
| 80 |
run: hub pr checkout ${{ github.event.issue.number }} |
| 81 |
env: |
| 82 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 83 |
|
| 84 |
- name: Install Conda environment with Micromamba |
| 85 |
uses: mamba-org/setup-micromamba@v2 |
| 86 |
with: |
| 87 |
environment-name: ipydatagrid-test-ipw8 |
| 88 |
environment-file: test-environment-ipyw8.yaml |
| 89 |
|
| 90 |
- name: Install the package |
| 91 |
run: pip install -vv . |
| 92 |
|
| 93 |
- name: Install dependencies |
| 94 |
working-directory: ui-tests |
| 95 |
env: |
| 96 |
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 |
| 97 |
run: jlpm install |
| 98 |
|
| 99 |
- uses: jupyterlab/maintainer-tools/.github/actions/update-snapshots@v1 |
| 100 |
with: |
| 101 |
npm_client: jlpm |
| 102 |
github_token: ${{ secrets.GITHUB_TOKEN }} |
| 103 |
start_server_script: 'null' |
| 104 |
test_folder: ui-tests-ipw8 |