-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1023 Bytes
/
ci.yml
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
name: ci
on:
push:
pull_request:
branches:
- main
- dev
defaults:
run:
shell: bash
permissions:
contents: write
jobs:
tests:
strategy:
max-parallel: 4
matrix:
os:
- ubuntu-latest
- macos-latest
python-version:
- "3.9"
- "3.10"
- "3.11"
copier-version:
- "8.1.0"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up PDM
uses: pdm-project/setup-pdm@main
with:
python-version: ${{ matrix.python-version }}
- name: Set variables
id: set_variables
run: |
git config --global user.name "GitHub Action"
git config --global user.email "action@github.com"
git config --global init.defaultBranch main
- name: Install dependencies
run: pip install copier==${{ matrix.copier-version }} copier-templates-extensions
- name: Run tests
run: bash tests/test_generate.sh