-
Notifications
You must be signed in to change notification settings - Fork 10
59 lines (50 loc) · 1.71 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: CI
"on":
push:
branches-ignore:
# These should always correspond to pull requests, so ignore them for
# the push trigger and let them be triggered by the pull_request
# trigger, avoiding running the workflow twice. This is a minor
# optimization so there's no need to ensure this is comprehensive.
- "dependabot/**"
- "renovate/**"
- "tickets/**"
- "u/**"
tags:
- "*"
pull_request: {}
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python:
- "3.10"
- "3.11"
- "3.12"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install dependencdies
run: pip install -r requirements.txt
# The check command rebuilds all examples with scons and ensures that
# generated examples match the committed state.
- name: Check templates
run: |
templatekit check \
--ignore "project_templates/technote_rst/testn-000/technote.toml" \
--ignore "project_templates/technote_md/testn-000/technote.toml"
# Test TeX builds only with the latest Python version, since they're
# fairly heavy-weight and the Python version shouldn't matter.
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: sqrereadonly
password: ${{ secrets.DOCKERHUB_SQREREADONLY_TOKEN }}
if: matrix.python == '3.11'
- name: Check tex builds
run: |
docker run --rm -v `pwd`:/workspace -w /workspace lsstsqre/lsst-texmf:latest sh -c './testTexDocs.sh'
if: matrix.python == '3.11'