Skip to content

Commit 2286ae1

Browse files
authored
Merge pull request #1466 from Open-MSS/merge_develop_to_stable
Merge develop to stable
2 parents 434feca + a24cd6c commit 2286ae1

File tree

22 files changed

+430
-137
lines changed

22 files changed

+430
-137
lines changed

.github/workflows/build_docs_gallery.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- name: Trust My Directory
1818
run: git config --global --add safe.directory /__w/MSS/MSS
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v3
2020

2121
- name: Create gallery
2222
timeout-minutes: 25

.github/workflows/python-flake8.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
runs-on: ubuntu-latest
1919
timeout-minutes: 10
2020
steps:
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v3
2222
- name: Set up Python 3.8
23-
uses: actions/setup-python@v2
23+
uses: actions/setup-python@v3
2424
with:
2525
python-version: 3.8
2626
- name: Lint with flake8
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: test develop
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
pull_request:
8+
branches:
9+
- develop
10+
11+
jobs:
12+
test-develop:
13+
uses:
14+
./.github/workflows/testing.yml
15+
with:
16+
xdist: no
17+
branch_name: develop
18+
event_name: ${{ github.event_name }}
19+
secrets:
20+
PAT: ${{ secrets.PAT }}
21+
22+
test-develop-xdist:
23+
uses:
24+
./.github/workflows/testing.yml
25+
with:
26+
xdist: yes
27+
branch_name: develop
28+
event_name: ${{ github.event_name }}
29+
secrets:
30+
PAT: ${{ secrets.PAT }}
31+
32+
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: test stable
2+
3+
on:
4+
push:
5+
branches:
6+
- stable
7+
pull_request:
8+
branches:
9+
- stable
10+
11+
jobs:
12+
test-stable:
13+
uses:
14+
./.github/workflows/testing.yml
15+
with:
16+
xdist: no
17+
branch_name: stable
18+
event_name: ${{ github.event_name }}
19+
secrets:
20+
PAT: ${{ secrets.PAT }}
21+
22+
test-stable-xdist:
23+
uses:
24+
./.github/workflows/testing.yml
25+
with:
26+
xdist: yes
27+
branch_name: stable
28+
event_name: ${{ github.event_name }}
29+
secrets:
30+
PAT: ${{ secrets.PAT }}
31+
32+

.github/workflows/testing.yml

Lines changed: 50 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
11
name: Pytest MSS
22

3-
on:
4-
push:
5-
branches:
6-
- develop
7-
- stable
8-
pull_request:
9-
branches:
10-
- develop
11-
- stable
3+
on:
4+
workflow_call:
5+
inputs:
6+
xdist:
7+
required: true
8+
type: string
9+
branch_name:
10+
required: true
11+
type: string
12+
event_name:
13+
required: true
14+
type: string
15+
secrets:
16+
PAT:
17+
required: true
1218

1319
env:
1420
PAT: ${{ secrets.PAT }}
21+
EVENT: ${{ inputs.event_name }}
1522

1623
jobs:
1724
Test-MSS:
@@ -22,29 +29,32 @@ jobs:
2229
shell: bash
2330

2431
container:
25-
image: openmss/mss-test:latest
32+
image: openmss/testing-${{ inputs.branch_name }}
2633

2734
steps:
2835
- name: Trust My Directory
2936
run: git config --global --add safe.directory /__w/MSS/MSS
30-
- uses: actions/checkout@v2
31-
37+
38+
- uses: actions/checkout@v3
3239
- name: Reinstall dependencies if changed
40+
id: step1
3341
run: |
3442
cmp -s /meta.yaml localbuild/meta.yaml && cmp -s /development.txt requirements.d/development.txt || (echo Dependencies differ \
43+
&& echo "triggerdockerbuild=yes" >> $GITHUB_ENV \
3544
&& cat localbuild/meta.yaml \
3645
| sed -n '/^requirements:/,/^test:/p' \
3746
| sed -e "s/.*- //" \
3847
| sed -e "s/menuinst.*//" \
3948
| sed -e "s/.*://" > reqs.txt \
40-
&& source /opt/conda/bin/activate mssenv \
41-
&& conda install --revision 0 \
42-
&& conda install mamba python=3.9.12 \
43-
&& mamba install pyvirtualdisplay python=3.9.12 \
44-
&& mamba install --file reqs.txt \
45-
&& mamba install --file requirements.d/development.txt)
49+
&& conda create -n new_mssenv mamba python\<3.10 \
50+
&& conda activate new_mssenv \
51+
&& mamba install -c conda-forge pyvirtualdisplay python\<3.10 -y \
52+
&& mamba install -c conda-forge --file reqs.txt -y \
53+
&& mamba install -c conda-forge --file requirements.d/development.txt -y \
54+
&& conda create --name mssenv --copy --clone new_mssenv -y)
4655
4756
- name: Run tests
57+
if: ${{ success() && inputs.xdist == 'no' }}
4858
timeout-minutes: 25
4959
run: |
5060
source /opt/conda/bin/activate mssenv \
@@ -55,9 +65,20 @@ jobs:
5565
&& break \
5666
; done)
5767
58-
59-
- name: coveralls
60-
if: ${{ always() && github.event_name == 'push' && github.ref == 'refs/heads/develop' }}
68+
- name: Run tests in parallel
69+
if: ${{ success() && inputs.xdist == 'yes' }}
70+
timeout-minutes: 25
71+
run: |
72+
source /opt/conda/bin/activate mssenv \
73+
&& cd $GITHUB_WORKSPACE \
74+
&& pytest -vv -n 6 --dist loadfile --max-worker-restart 0 mslib \
75+
|| (for i in {1..5} \
76+
; do pytest -vv -n 6 --dist loadfile --max-worker-restart 0 mslib --last-failed --lfnf=none \
77+
&& break \
78+
; done)
79+
80+
- name: Collect coverage
81+
if: ${{ always() && inputs.event_name == 'push' && inputs.branch_name == 'develop' && inputs.xdist == 'no'}}
6182
env:
6283
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6384
run: |
@@ -66,17 +87,11 @@ jobs:
6687
&& mamba install coveralls \
6788
&& coveralls --service=github
6889
69-
Update-Images:
70-
runs-on: ubuntu-latest
71-
if: github.event_name == 'push'
72-
needs: [Test-MSS]
73-
74-
steps:
75-
- if: env.PAT != ''
76-
name: Invoke dockerhub image creation
77-
uses: benc-uk/workflow-dispatch@827565b908f387ffd483c84312273ae185c06c8a
78-
with:
79-
workflow: Update all images
80-
repo: Open-MSS/dockerhub
81-
ref: stable
82-
token: ${{ secrets.PAT }}
90+
- name: Invoke dockertesting image creation
91+
if: ${{ always() && inputs.event_name == 'push' && env.triggerdockerbuild == 'yes' && inputs.xdist == 'no'}}
92+
uses: benc-uk/workflow-dispatch@827565b908f387ffd483c84312273ae185c06c8a
93+
with:
94+
workflow: Update Image testing-${{ inputs.branch_name }}
95+
repo: Open-MSS/dockertesting
96+
ref: main
97+
token: ${{ secrets.PAT }}

.github/workflows/xdist_testing.yml

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

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ in alphabetic order by first name
1919
- Reimar Bauer <rb.proj@gmail.com>
2020
- Sakshi Chopkar <sakshichopkar@gmail.com>
2121
- Shivashis Padhi <shivashispadhi@gmail.com>
22+
- Sonja Gisinger <sonja.gisinger@dlr.de>
2223
- Sreelakshmi Jayarajan <sreelakshmipj555@gmail.com>
2324
- Tanish Grover <tanish1908@gmail.com>
2425
- Thomas Breuer <t.breuer@fz-juelich.de>

CHANGES.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
Changelog
22
=========
33

4+
Version 6.2.0
5+
~~~~~~~~~~~~~
6+
7+
This release includes the use of the new basemap-1.3.3 release and enables packaging for python 3.10.x.
8+
We added the possibility of flight level as vertical coordinate.
9+
A user can now leave on his own an operation.
10+
11+
12+
All changes:
13+
https://github.com/Open-MSS/MSS/milestone/80?closed=1
14+
15+
416
Version 6.1.1
517
~~~~~~~~~~~~~
618

docs/mswms.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ The vertical coordinate variable is identified by the standard_name being one of
131131

132132
- atmosphere_potential_temperature_coordinate - "tl"
133133

134+
- fligth_level_coordinate -"fl"
135+
134136
The two-letter abbreviation is used for brief identification in the plotting routines in addition
135137
to the standard_name of the variable to uniquely identify which data shall be used.
136138
The data shall be organized with the dimensions in the order of "time", "vertical coordinate",

localbuild/meta.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ source:
99
path: ../
1010

1111
build:
12-
skip: true # [py27]
12+
skip: true # [py<38]
1313
number: 1000
1414
script: "{{ PYTHON }} -m pip install . --no-deps -vv" # [not win]
1515
entry_points:
@@ -20,19 +20,18 @@ build:
2020

2121
requirements:
2222
build:
23-
- python
23+
- python <3.10
2424
- pip
2525
- future
2626
- menuinst # [win]
2727
run:
28-
- python
28+
- python <3.10
2929
- defusedxml
3030
- menuinst # [win]
31-
- basemap >1.2.1
31+
- basemap >=1.3.3
3232
- chameleon
3333
- execnet
3434
- fastkml =0.11
35-
- gsl =2.7.0
3635
- isodate
3736
- lxml
3837
- netcdf4
@@ -75,8 +74,6 @@ requirements:
7574
- xstatic
7675
- xstatic-jquery
7776
- xstatic-bootstrap
78-
- pyperclip
79-
- geos <3.9.0
8077
- gpxpy >=1.4.2
8178
- metpy
8279
- pycountry
@@ -94,7 +91,8 @@ test:
9491
about:
9592
summary: 'A web service based tool to plan atmospheric research flights.'
9693
home: https://github.com/Open-MSS/MSS
97-
license: Apache-2.0
94+
license: "Apache-2.0"
95+
license_family: "APACHE"
9896
license_file: LICENSE
9997
description: |
10098
MSS - Mission Support System

0 commit comments

Comments
 (0)