Skip to content

Commit d3b9c98

Browse files
committed
added os matrix testing upgraded actions
1 parent bcdf327 commit d3b9c98

File tree

3 files changed

+78
-16
lines changed

3 files changed

+78
-16
lines changed

cookiecutter.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"include_cli": ["y", "n"],
1515
"container_runtime": ["podman", "docker"],
1616
"__template_repo": "https://github.com/btr1975/cookiecutter-python-library",
17-
"__template_version": "1.0.12",
17+
"__template_version": "1.0.13",
1818
"_new_lines":"\n",
1919
"_copy_without_render": [
2020
".github"

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ 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:
2121
python-version: 3.9
2222

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

Lines changed: 75 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +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:
29-
- '3.8'
30-
- '3.9'
29+
- 3.8
30+
- 3.9
3131
- '3.10'
3232
- '3.11'
3333
- '3.12'
34+
os:
35+
- ubuntu-latest
3436

3537
steps:
36-
- uses: actions/checkout@v3
38+
- uses: actions/checkout@v4
3739
- name: Set up Python ${{ matrix.python-version }}
38-
uses: actions/setup-python@v4
40+
uses: actions/setup-python@v5
3941
with:
4042
python-version: ${{ matrix.python-version }}
4143
- name: Upgrade pip setuptools wheel
@@ -47,9 +49,69 @@ jobs:
4749
- name: Run Linting
4850
run: |
4951
make pylint
50-
- name: Run Unit-Testing and Coverage
51-
run: |
52-
make coverage
53-
- name: Run Build
54-
run: |
55-
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)