Skip to content

Commit 2134644

Browse files
committed
updated action version, added os matrix testing, added 3.12 to matrix
1 parent 77ca974 commit 2134644

File tree

3 files changed

+78
-15
lines changed

3 files changed

+78
-15
lines changed

cookiecutter.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"include_webpages": ["n", "y"],
1515
"container_runtime": ["podman", "docker"],
1616
"__template_repo": "https://github.com/btr1975/cookiecutter-python-fastapi-openapi",
17-
"__template_version": "1.0.9",
17+
"__template_version": "1.0.10",
1818
"_new_lines":"\n",
1919
"_copy_without_render": [
2020
"{{cookiecutter.__app_name}}/templates",

{{cookiecutter.git_repo_name}}/.github/workflows/publish-to-pypi.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818
- name: Set up Python
19-
uses: actions/setup-python@v4
19+
uses: actions/setup-python@v5
2020
with:
21-
python-version: 3.8
21+
python-version: 3.9
2222

2323
- name: Upgrade pip setuptools wheel
2424
run: |

{{cookiecutter.git_repo_name}}/.github/workflows/test-coverage-lint.yml

Lines changed: 74 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,24 @@ on:
2020
- bug/*
2121

2222
jobs:
23-
build:
24-
25-
runs-on: ubuntu-latest
23+
linting:
24+
runs-on: ${{ matrix.os }}
2625
strategy:
26+
fail-fast: false
2727
matrix:
2828
python-version:
2929
- 3.8
3030
- 3.9
3131
- '3.10'
3232
- '3.11'
33+
- '3.12'
34+
os:
35+
- ubuntu-latest
3336

3437
steps:
35-
- uses: actions/checkout@v3
38+
- uses: actions/checkout@v4
3639
- name: Set up Python ${{ matrix.python-version }}
37-
uses: actions/setup-python@v4
40+
uses: actions/setup-python@v5
3841
with:
3942
python-version: ${{ matrix.python-version }}
4043
- name: Upgrade pip setuptools wheel
@@ -46,9 +49,69 @@ jobs:
4649
- name: Run Linting
4750
run: |
4851
make pylint
49-
- name: Run Unit-Testing and Coverage
50-
run: |
51-
make coverage
52-
- name: Run Build
53-
run: |
54-
make build
52+
53+
testing-coverage:
54+
needs: linting
55+
runs-on: ${{ matrix.os }}
56+
strategy:
57+
fail-fast: false
58+
matrix:
59+
python-version:
60+
- 3.8
61+
- 3.9
62+
- '3.10'
63+
- '3.11'
64+
- '3.12'
65+
os:
66+
- ubuntu-latest
67+
- windows-latest
68+
- macos-latest
69+
70+
steps:
71+
- uses: actions/checkout@v4
72+
- name: Set up Python ${{ matrix.python-version }}
73+
uses: actions/setup-python@v5
74+
with:
75+
python-version: ${{ matrix.python-version }}
76+
- name: Upgrade pip setuptools wheel
77+
run: |
78+
python -m pip install --upgrade pip setuptools wheel
79+
- name: Install requirements from requirements-dev.txt
80+
run: |
81+
pip install -r requirements-dev.txt
82+
- name: Run Unit-Testing and Coverage
83+
run: |
84+
make coverage
85+
86+
build:
87+
needs: testing-coverage
88+
runs-on: ${{ matrix.os }}
89+
strategy:
90+
fail-fast: false
91+
matrix:
92+
python-version:
93+
- 3.8
94+
- 3.9
95+
- '3.10'
96+
- '3.11'
97+
- '3.12'
98+
os:
99+
- ubuntu-latest
100+
- windows-latest
101+
- macos-latest
102+
103+
steps:
104+
- uses: actions/checkout@v4
105+
- name: Set up Python ${{ matrix.python-version }}
106+
uses: actions/setup-python@v5
107+
with:
108+
python-version: ${{ matrix.python-version }}
109+
- name: Upgrade pip setuptools wheel
110+
run: |
111+
python -m pip install --upgrade pip setuptools wheel
112+
- name: Install requirements from requirements-dev.txt
113+
run: |
114+
pip install -r requirements-dev.txt
115+
- name: Run Build
116+
run: |
117+
make build

0 commit comments

Comments
 (0)