-
Notifications
You must be signed in to change notification settings - Fork 10
66 lines (52 loc) · 2.1 KB
/
create_web_python_flask.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Create web-website-python Flask Template
on:
push:
paths-ignore:
- "tests/**"
- "docs/**"
pull_request:
paths-ignore:
- "tests/**"
- "docs/**"
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]')"
strategy:
matrix:
python: [3.8, 3.9]
steps:
- uses: actions/checkout@v3
name: Check out source-code repository
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install Poetry
run: pip install poetry
- name: Build package
run: make install
- name: Create web-website-python basic Flask Template
run: echo -e "\033[B\033[B\033[B\n\nHomer\[email protected]\nhomergithub\n\nnExplodingSpringfield\ndescription\n1.0.0\n\n\n\n\n\n\nndummy.com\ncookietempleuser\nn" | poetry run cookietemple create
- name: Create web-website-python advanced Flask Template
run: echo -e "\033[B\033[B\033[B\n\nExplodingSpringfieldAdvanced\ndescription\n1.0.0\n\n\n\n\n\033[B\nn\n\n\n\ntest.com\nvmusername\nn" | poetry run cookietemple create
- name: Build basic Package
run: |
cd explodingspringfield
make install
- name: Install doc dependencies
run: pip install -r docs/requirements.txt
- name: Build docs basic template
run: |
cd docs
make html
- name: Build advanced Package
run: |
cd explodingspringfieldadvanced
make install
- name: Install doc dependencies
run: pip install -r docs/requirements.txt
- name: Build docs advanced template
run: |
cd docs
make html