Skip to content

Commit ffa9d4b

Browse files
authored
ci: 👷 add test workflow (#146)
# Description Moves this file from #134 No review is needed.
1 parent 7c44c98 commit ffa9d4b

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Test template creation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
# Least privilege permissions
10+
permissions: read-all
11+
12+
jobs:
13+
test-copier:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
18+
19+
- name: Set up uv
20+
uses: astral-sh/setup-uv@bd01e18f51369d5a26f1651c3cb451d3417e3bba
21+
with:
22+
enable-cache: true
23+
24+
- name: Set up Quarto
25+
uses: quarto-dev/quarto-actions/setup@9e48da27e184aa238fcb49f5db75469626d43adb # v2.1.9
26+
27+
- name: Install justfile
28+
run: sudo apt install -y just
29+
30+
- name: Set Git user
31+
run: |
32+
git config --global user.name "GitHub Actions"
33+
git config --global user.email "[email protected]"
34+
35+
- name: Test and check template creation
36+
run: just _tests

0 commit comments

Comments
 (0)