-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests to verify quarto<>connect integration
- Loading branch information
1 parent
0e17814
commit 8b7bb59
Showing
16 changed files
with
1,016 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Connect deploy tests | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
reason: | ||
description: "Reason for running the tests" | ||
required: false | ||
type: string | ||
default: "" | ||
schedule: | ||
- cron: "0 5 * * *" | ||
|
||
jobs: | ||
test-deploys: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set Path | ||
shell: bash | ||
run: | | ||
echo "$HOME/bin" >> $GITHUB_PATH | ||
- name: Configure Quarto | ||
uses: ./.github/workflows/actions/quarto-dev | ||
|
||
- name: Install node (for Playwright, MECA) | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- name: Install Playwright Browsers | ||
run: npx playwright install --with-deps | ||
working-directory: ./tests/integration/playwright | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install Python dependencies | ||
run: pip install rsconnect | ||
|
||
- name: Run the tests | ||
env: | ||
DEPLOY_CONNECT_SERVER_URL: "https://rsc.radixu.com/" | ||
DEPLOY_CONNECT_SERVER_API_KEY: "${{ secrets.DEPLOY_CONNECT_SERVER_API_KEY }}" | ||
run: | | ||
npx playwright test | ||
working-directory: ./tests/integration/playwright/connect-integration-tests | ||
|
1 change: 1 addition & 0 deletions
1
tests/docs/playwright/connect-deploy-tests/connect-manuscript/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/.quarto/ |
21 changes: 21 additions & 0 deletions
21
tests/docs/playwright/connect-deploy-tests/connect-manuscript/_quarto.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
project: | ||
type: manuscript | ||
|
||
manuscript: | ||
article: index.qmd | ||
|
||
format: | ||
html: | ||
comments: | ||
hypothesis: true | ||
docx: default | ||
jats: default | ||
|
||
# (other formats) | ||
# pdf: default | ||
|
||
execute: | ||
freeze: true | ||
|
||
|
||
|
12 changes: 12 additions & 0 deletions
12
tests/docs/playwright/connect-deploy-tests/connect-manuscript/index.qmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
title: manuscript | ||
authors: | ||
- name: Norah James | ||
affiliation: The University | ||
roles: reading | ||
corresponding: true | ||
bibliography: references.bib | ||
--- | ||
|
||
## Section | ||
This is a simple placeholder for the manuscript's main document [@knuth84]. |
19 changes: 19 additions & 0 deletions
19
tests/docs/playwright/connect-deploy-tests/connect-manuscript/references.bib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
@article{knuth84, | ||
author = {Knuth, Donald.}, | ||
title = {Literate Programming}, | ||
year = {1984}, | ||
issue_date = {May 1984}, | ||
publisher = {Oxford University Press, Inc.}, | ||
address = {USA}, | ||
volume = {27}, | ||
number = {2}, | ||
issn = {0010-4620}, | ||
url = {https://doi.org/10.1093/comjnl/27.2.97}, | ||
doi = {10.1093/comjnl/27.2.97}, | ||
journal = {Comput. J.}, | ||
month = may, | ||
pages = {97–111}, | ||
numpages = {15} | ||
} | ||
|
||
|
Oops, something went wrong.