Skip to content

Commit

Permalink
Add tests to verify quarto<>connect integration
Browse files Browse the repository at this point in the history
  • Loading branch information
karangattu committed May 21, 2024
1 parent 0e17814 commit 8b7bb59
Show file tree
Hide file tree
Showing 16 changed files with 1,016 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/connect-deploys.yml
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

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.quarto/
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



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].
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}
}


Loading

0 comments on commit 8b7bb59

Please sign in to comment.