Skip to content

Commit 3858525

Browse files
authored
Merge pull request #2384 from Open-MSS/merge_develop_to_stable
Merge develop to stable == 9.0.0
2 parents a1a93c6 + 9aa6403 commit 3858525

File tree

388 files changed

+13931
-8046
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

388 files changed

+13931
-8046
lines changed

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"
11+
target-branch: stable

.github/pull_request_template.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
**Purpose of PR?**:
2+
3+
Fixes #
4+
5+
**Does this PR introduce a breaking change?**
6+
7+
**If the changes in this PR are manually verified, list down the scenarios covered:**:
8+
9+
**Additional information for reviewer?** :
10+
_Mention if this PR is part of any design or a continuation of previous PRs_
11+
12+
**Does this PR results in some Documentation changes?**
13+
_If yes, include the list of Documentation changes_
14+
15+
**Checklist:**
16+
- [ ] Bug fix. Fixes #<issue number>
17+
- [ ] New feature (Non-API breaking changes that adds functionality)
18+
- [ ] PR Title follows the convention of `<type>: <subject>`
19+
- [ ] Commit has unit tests
20+
21+
<!--
22+
23+
The PR title message must follow convention:
24+
`<type>: <subject>`.
25+
26+
Where: <br />
27+
- `type` is to define what type of PR is this.
28+
Most common types are:
29+
- `feat` - for new features, not a new feature for build script
30+
- `fix` - for bug fixes or improvements, not a fix for build script
31+
- `chore` - changes not related to production code
32+
- `docs` - changes related to documentation
33+
- `style` - formatting, missing semi colons, linting fix etc; no significant production code changes
34+
- `test` - adding missing tests, refactoring tests; no production code change
35+
- `refactor` - refactoring production code, eg. renaming a variable or function name, there should not be any significant production code changes
36+
37+
- `subject` is a single line brief description of the changes made in the pull request.
38+
39+
-->
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Bug report
3+
about: Create a bug report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
## Bug Report
11+
12+
13+
**General Information**
14+
15+
Please describe your issue in few words here.
16+
17+
**How to Reproduce**
18+
19+
1. Instruction 1
20+
2. Instruction 2
21+
22+
**Expected behavior**
23+
24+
A description of what you expected to happen.
25+
26+
**Screenshots**
27+
28+
If applicable, add screenshots to help explain your problem.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Feature request/Enhancement
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
## Feature Request
11+
12+
**Short Description**
13+
14+
E.g., MSS could support ensuring that cows don't take over the world and turn us all into their loyal milkmaids.
15+
16+
**Is your feature request related to a problem? Please describe the use case.**
17+
18+
A description of what the problem/use case is. E.g. Prevent the impending cow uprising and maintain human dominance on Earth.
19+
20+
**Describe the solution you'd like**
21+
22+
A description of what you want to happen. E.g., Develop a "Moofense" system that deploys an army of robotic cow herders to keep the bovine rebellion in check.
23+
24+
**Describe alternatives you've considered**
25+
26+
A description of any alternative solutions or features you've considered. E.g, Alternatively, we could offer the cows a reality TV show deal and distract them with celebrity pasture appearances, turning them into the world's first moo-dia stars.

.github/workflows/build_docs_gallery.yml

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,19 @@ name: Build Gallery
22

33
on:
44
pull_request:
5-
inputs:
6-
branch_name:
7-
required: true
8-
type: string
9-
secrets:
10-
PAT:
11-
required: true
12-
13-
env:
14-
PAT: ${{ secrets.PAT }}
155

166
jobs:
177
Test-MSS-docs:
188
runs-on: ubuntu-latest
199

20-
defaults:
21-
run:
22-
shell: bash
23-
2410
container:
2511
image: openmss/testing-develop
2612

2713
steps:
28-
- name: Trust My Directory
29-
run: git config --global --add safe.directory /__w/MSS/MSS
3014
- uses: actions/checkout@v4
3115

3216
- name: Create gallery
33-
timeout-minutes: 25
17+
timeout-minutes: 5
3418
run: |
35-
source /opt/conda/bin/activate mssenv \
36-
&& cd $GITHUB_WORKSPACE/docs \
37-
&& python conf.py
19+
cd docs
20+
mamba run --no-capture-output -n mssenv python conf.py

.github/workflows/lint.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,27 @@ on:
55
branches:
66
- develop
77
- stable
8+
- 'GSOC**'
89
pull_request:
910
branches:
1011
- develop
1112
- stable
13+
- 'GSOC**'
1214

1315
jobs:
1416
flake8:
1517
runs-on: ubuntu-latest
1618
timeout-minutes: 10
1719
steps:
1820
- uses: actions/checkout@v4
19-
- name: Set up Python 3.8
21+
- name: Set up Python 3.10
2022
uses: actions/setup-python@v5
2123
with:
22-
python-version: 3.8
24+
python-version: "3.10"
2325
- name: Lint with flake8
2426
run: |
2527
python -m pip install --upgrade pip
26-
pip install flake8
28+
pip install flake8 flake8-builtins
2729
flake8 --count --statistics mslib tests
2830
2931
no-crlf-in-git:
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Test MSS
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
- stable
8+
- 'GSOC**'
9+
pull_request:
10+
branches:
11+
- develop
12+
- stable
13+
- 'GSOC**'
14+
15+
jobs:
16+
test:
17+
runs-on: ${{ matrix.os }}
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
os: ["macos-13", "macos-14", "ubuntu-latest"]
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: Build requirements.txt file
25+
run: |
26+
sed -n '/^requirements:/,/^test:/p' localbuild/meta.yaml |
27+
sed -e "s/.*- //" |
28+
sed -e "s/menuinst.*//" |
29+
sed -e "s/.*://" > requirements.tmp.txt
30+
cat requirements.d/development.txt >> requirements.tmp.txt
31+
echo "pytest-randomly" >> requirements.tmp.txt
32+
sed -e '/^$/d' -e '/^#.*$/d' requirements.tmp.txt > requirements.txt
33+
rm requirements.tmp.txt
34+
cat requirements.txt
35+
- name: Get current year and calendar week
36+
id: year-and-week
37+
run: echo "year-and-week=$(date +%Y-%V)" >> "$GITHUB_OUTPUT"
38+
- uses: mamba-org/setup-micromamba@v1
39+
with:
40+
environment-file: requirements.txt
41+
environment-name: ci
42+
cache-environment: true
43+
# Set the cache key in a way that the cache is invalidated every week on monday
44+
cache-environment-key: environment-${{ steps.year-and-week.outputs.year-and-week }}
45+
- name: Run tests
46+
timeout-minutes: 20
47+
# The ignored files can somehow cause the test suite to timeout.
48+
# I have no idea yet on why this happens and how to fix it.
49+
# Even a module level skip is not enough, they need to be completely ignored.
50+
# TODO: fix those tests and drop the ignores
51+
run: micromamba run -n ci env QT_QPA_PLATFORM=offscreen pytest -v -n logical --durations=20 --cov=mslib
52+
--ignore=tests/_test_msui/test_sideview.py --ignore=tests/_test_msui/test_topview.py --ignore=tests/_test_msui/test_wms_control.py
53+
tests

.github/workflows/testing-develop.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,16 @@ on:
44
push:
55
branches:
66
- develop
7-
87
pull_request:
98
branches:
109
- develop
10+
workflow_dispatch:
1111

1212
jobs:
1313
test-develop:
1414
uses:
1515
./.github/workflows/testing.yml
1616
with:
17-
xdist: no
18-
branch_name: develop
19-
event_name: ${{ github.event_name }}
20-
secrets:
21-
PAT: ${{ secrets.PAT }}
22-
23-
test-develop-xdist:
24-
uses:
25-
./.github/workflows/testing.yml
26-
with:
27-
xdist: yes
28-
branch_name: develop
29-
event_name: ${{ github.event_name }}
17+
image_suffix: develop
3018
secrets:
3119
PAT: ${{ secrets.PAT }}

.github/workflows/testing-gsoc.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: test GSoC
2+
3+
on:
4+
push:
5+
branches:
6+
- 'GSOC**'
7+
pull_request:
8+
branches:
9+
- 'GSOC**'
10+
11+
jobs:
12+
test-gsoc:
13+
uses:
14+
./.github/workflows/testing.yml
15+
with:
16+
image_suffix: develop

.github/workflows/testing-scheduled.yml

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,23 @@ on:
44
schedule:
55
- cron: '30 5 * * 1'
66

7-
87
jobs:
9-
test-stable-scheduled:
10-
uses:
11-
./.github/workflows/testing.yml
12-
with:
13-
xdist: no
14-
branch_name: stable
15-
event_name: ${{ github.event_name }}
16-
secrets:
17-
PAT: ${{ secrets.PAT }}
8+
trigger-testing-stable:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
actions: write
12+
steps:
13+
- uses: benc-uk/workflow-dispatch@v1.2.3
14+
with:
15+
workflow: testing-stable.yml
16+
ref: stable
1817

19-
test-develop-scheduled:
20-
uses:
21-
./.github/workflows/testing.yml
22-
with:
23-
xdist: no
24-
branch_name: develop
25-
event_name: ${{ github.event_name }}
26-
secrets:
27-
PAT: ${{ secrets.PAT }}
18+
trigger-testing-develop:
19+
runs-on: ubuntu-latest
20+
permissions:
21+
actions: write
22+
steps:
23+
- uses: benc-uk/workflow-dispatch@v1.2.3
24+
with:
25+
workflow: testing-develop.yml
26+
ref: develop

0 commit comments

Comments
 (0)