-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 981 Bytes
/
validate-template.yaml
File metadata and controls
45 lines (36 loc) · 981 Bytes
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
name: copier
on:
pull_request:
branches: ['*']
paths:
- 'template/**'
- 'copier.yaml'
push:
branches:
- master
paths:
- 'template/**'
- 'copier.yaml'
workflow_dispatch: {}
jobs:
initialize:
uses: ./.github/workflows/core--initializer.yaml
validate_template:
needs: [initialize]
name: Validate Copier template (${{ matrix.variant }})
runs-on: ubuntu-latest
strategy:
matrix:
variant: ['default', 'maximum']
steps:
- name: Prepare Python
uses: emcd/python-project-common/.github/actions/python-hatch@master
with:
python-version: ${{ fromJSON(needs.initialize.outputs.python-versions)[0] }}
- name: Install External Linters
run: |
pipx install emcd-vibe-linter
- name: Install Copier
run: pip install copier
- name: Validate Variant
run: hatch run emcdproj template validate ${{ matrix.variant }}