Skip to content

Commit 09dcef8

Browse files
authored
Merge pull request #471 from CCPBioSim/470-feature-adopt-the-shared-ccpbiosim-configuration
Adopt the shared CCPBioSim configuration and workflows
2 parents ea35b4e + c545f8f commit 09dcef8

17 files changed

Lines changed: 151 additions & 946 deletions

‎.github/CONTRIBUTING.md‎

Lines changed: 0 additions & 65 deletions
This file was deleted.

‎.github/ISSUE_TEMPLATE/bug_report.md‎

Lines changed: 0 additions & 70 deletions
This file was deleted.

‎.github/ISSUE_TEMPLATE/config.yml‎

Lines changed: 0 additions & 22 deletions
This file was deleted.

‎.github/ISSUE_TEMPLATE/documentation.md‎

Lines changed: 0 additions & 19 deletions
This file was deleted.

‎.github/ISSUE_TEMPLATE/feature_request.md‎

Lines changed: 0 additions & 28 deletions
This file was deleted.

‎.github/ISSUE_TEMPLATE/general_report.md‎

Lines changed: 0 additions & 13 deletions
This file was deleted.

‎.github/PULL_REQUEST_TEMPLATE.md‎

Lines changed: 0 additions & 20 deletions
This file was deleted.

‎.github/renovate.json‎

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,8 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"extends": [
4-
"config:best-practices",
5-
"helpers:pinGitHubActionDigestsToSemver"
4+
"github>CCPBioSim/.github//renovate/default",
5+
"github>CCPBioSim/.github//renovate/python"
66
],
7-
"timezone": "Europe/London",
8-
"schedule": ["after 9am and before 5pm every weekday"],
9-
"dependencyDashboard": true,
10-
"reviewers": ["harryswift01", "jimboid"],
11-
"minimumReleaseAge": "3 days",
12-
"packageRules": [
13-
{
14-
"matchManagers": ["github-actions"],
15-
"groupName": "GitHub Actions",
16-
"addLabels": ["ci", "dependencies"]
17-
},
18-
{
19-
"matchManagers": ["poetry", "pep621"],
20-
"matchDepTypes": ["project.dependencies"],
21-
"rangeStrategy": "widen",
22-
"groupName": "Software Production Dependencies",
23-
"addLabels": ["python", "production-deps"]
24-
},
25-
{
26-
"matchManagers": ["poetry", "pep621"],
27-
"matchDepTypes": ["project.optional-dependencies", "build-system.requires"],
28-
"rangeStrategy": "replace",
29-
"groupName": "Python CI and Dev Tools",
30-
"addLabels": ["python", "dev-dependencies"]
31-
}
32-
]
7+
"reviewers": ["harryswift01", "jimboid"]
338
}

‎.github/workflows/coveralls-main.yaml‎

Lines changed: 9 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -16,39 +16,16 @@ concurrency:
1616
jobs:
1717
coveralls:
1818
name: Build main coverage baseline
19-
runs-on: ubuntu-26.04
20-
timeout-minutes: 30
21-
19+
uses: CCPBioSim/.github/.github/workflows/ci-test-python.yaml@116d539cf0864af72d33dce047313ca6fc624ccd # 0.4.0
2220
permissions:
2321
contents: read
2422
checks: write
2523
statuses: write
26-
27-
steps:
28-
- name: Checkout
29-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
30-
31-
- name: Set up Python 3.14
32-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
33-
with:
34-
python-version: "3.15"
35-
36-
- name: Install testing dependencies
37-
run: |
38-
python -m pip install --upgrade pip
39-
python -m pip install -e .[testing]
40-
41-
- name: Run coverage
42-
run: |
43-
python -m pytest tests/unit \
44-
--cov CodeEntropy \
45-
--cov-report term-missing \
46-
--cov-report xml \
47-
-q
48-
49-
- name: Upload coverage to Coveralls
50-
uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e
51-
with:
52-
github-token: ${{ secrets.GITHUB_TOKEN }}
53-
file: coverage.xml
54-
fail-on-error: false
24+
pull-requests: write
25+
with:
26+
package: CodeEntropy
27+
test-path: tests/unit
28+
os: '["ubuntu-26.04"]'
29+
python-versions: '["3.15"]'
30+
coverage-python-version: "3.15"
31+
timeout-minutes: 30

‎.github/workflows/daily.yaml‎

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,25 @@ on:
55
- cron: '0 8 * * 1-5'
66
workflow_dispatch:
77

8+
permissions:
9+
contents: read
10+
811
concurrency:
912
group: daily-${{ github.ref }}
1013
cancel-in-progress: true
1114

1215
jobs:
1316
unit:
14-
name: Unit (${{ matrix.os }}, py${{ matrix.python-version }})
15-
runs-on: ${{ matrix.os }}
16-
timeout-minutes: 30
17-
18-
strategy:
19-
fail-fast: false
20-
matrix:
21-
os: [ubuntu-24.04, macos-26, windows-2025-vs2026]
22-
python-version: ["3.12", "3.13", "3.14"]
23-
24-
steps:
25-
- name: Checkout
26-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
27-
28-
- name: Set up Python ${{ matrix.python-version }}
29-
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
30-
with:
31-
python-version: ${{ matrix.python-version }}
32-
33-
- name: Install testing dependencies
34-
run: |
35-
python -m pip install --upgrade pip
36-
python -m pip install -e .[testing]
37-
38-
- name: Run unit tests
39-
run: python -m pytest tests/unit
17+
name: Unit
18+
uses: CCPBioSim/.github/.github/workflows/ci-test-python.yaml@116d539cf0864af72d33dce047313ca6fc624ccd # 0.4.0
19+
permissions:
20+
contents: read
21+
checks: write
22+
statuses: write
23+
pull-requests: write
24+
with:
25+
package: CodeEntropy
26+
test-path: tests/unit
27+
os: '["ubuntu-24.04", "macos-26", "windows-2025-vs2026"]'
28+
coverage: false
29+
timeout-minutes: 30

0 commit comments

Comments
 (0)