Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playwright CI #206

Merged
merged 17 commits into from
Oct 11, 2024
Merged

Playwright CI #206

merged 17 commits into from
Oct 11, 2024

Conversation

yijie-yang
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@jinjingforever jinjingforever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very nice! Super cool to see these getting set up. Thank you Eric!

- name: Turn up local server
run: |
cd src/server
scripts/setup_local_dev.sh
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing I probably forgot to mention: we also want to use the latest UI code to start the server with. To do that,

  1. cd into src/ui
  2. run: npm install -g @angular/cli and npm install
  3. run ./scripts/build_and_update_python_package.sh. This will build the angular app and copy the files to the proper server directory.

Then you can run model-explorer... to start the server with the latest UI.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes definitely! Can we set up the UI test in a separate PR since it also involves some npm installation and js related debugging?

paths:
- 'src/server/**'
- '.github/workflow/**'
- 'ci/**'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also add the path to ui code since we are using the latest ui code to start the server with (see comment above)

pull_request:
# Triggered by default activities (synchronize, opened, reopened) + labeled.
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#pull_request
types: [labeled, synchronize, opened, reopened]
branches: ["main"]
paths:
- 'src/server/**'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the path to ui code here too

ci/playwright_test.py Outdated Show resolved Hide resolved
@yijie-yang yijie-yang merged commit 59263f1 into main Oct 11, 2024
3 checks passed
@yijie-yang yijie-yang deleted the playwright-ci branch October 14, 2024 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants