Skip to content

Commit 7621d1c

Browse files
authored
Merge pull request #551 from NLeSC/345_update_ci
345-update github Actions
2 parents 2bfbd09 + e578b3b commit 7621d1c

7 files changed

Lines changed: 40 additions & 12 deletions

File tree

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
jobs:
11+
12+
build:
13+
name: Run pip install
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: true
17+
matrix:
18+
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
19+
python-version: ['3.10', '3.11', '3.12']
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
- name: Python info
27+
shell: bash -e {0}
28+
run: |
29+
which python
30+
python --version
31+
- name: Install dependencies
32+
run: |
33+
python -m pip install --upgrade pip setuptools
34+
python -m pip install .[dev]

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
name: Run template tests
1414
runs-on: ${{ matrix.os }}
1515
strategy:
16-
fail-fast: false
16+
fail-fast: true
1717
matrix:
1818
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
19-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
19+
python-version: ['3.10', '3.11', '3.12']
2020
steps:
2121
- uses: actions/checkout@v4
2222
- name: Set up Python ${{ matrix.python-version }}

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
* Make online documentation optional [#476](https://github.com/NLeSC/python-template/pull/476)
1414

1515
### Changed
16+
* Droped Python 3.8 and 3.9 support [#551](https://github.com/NLeSC/python-template/pull/551)
1617
* Fix broken link checker [#546](https://github.com/NLeSC/python-template/pull/546)
1718
* pre-commit script is optional ([#457](https://github.com/NLeSC/python-template/issues/457))
1819
* CHANGELOG.md is now optional ([#462](https://github.com/NLeSC/python-template/issues/462))
1920

2021
### Removed
2122

22-
*
2323

2424
## [0.5.0]
2525

setup.cfg

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ classifiers =
1212
License :: OSI Approved :: Apache Software License
1313
Natural Language :: English
1414
Programming Language :: Python :: 3
15-
Programming Language :: Python :: 3.8
16-
Programming Language :: Python :: 3.9
1715
Programming Language :: Python :: 3.10
1816
Programming Language :: Python :: 3.11
1917
Programming Language :: Python :: 3.12
@@ -30,7 +28,7 @@ version = 0.4.0
3028
[options]
3129
zip_safe = False
3230
include_package_data = True
33-
python_requires = >=3.8
31+
python_requires = >=3.10
3432
packages =
3533
install_requires =
3634
copier==9.2.0

template/.github/workflows/{% if AddGitHubActions %}build.yml{% endif %}

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
name: Build for (${{ '{{ ' -}} matrix.python-version }}, ${{ '{{ ' -}} matrix.os }})
1515
runs-on: ${{ '{{ ' -}} matrix.os }}
1616
strategy:
17-
fail-fast: false
17+
fail-fast: true
1818
matrix:
1919
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
20-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
20+
python-version: ['3.10', '3.11', '3.12']
2121
steps:
2222
- uses: actions/checkout@v4
2323
- name: Set up Python ${{ '{{ ' -}} matrix.python-version }}

template/project_setup.md.jinja

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ checklist](https://guide.esciencecenter.nl/#/best_practices/checklist).
1111

1212
This repository is set up with Python versions:
1313

14-
- 3.8
15-
- 3.9
1614
- 3.10
1715
- 3.11
1816
- 3.12

template/pyproject.toml.jinja

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ classifiers = [
2424
}[license] }}",
2525
"Natural Language :: English",
2626
"Programming Language :: Python :: 3",
27-
"Programming Language :: Python :: 3.8",
28-
"Programming Language :: Python :: 3.9",
2927
"Programming Language :: Python :: 3.10",
3028
"Programming Language :: Python :: 3.11",
3129
"Programming Language :: Python :: 3.12",

0 commit comments

Comments
 (0)