Skip to content

Create GH test workflow#7

Open
AdamRJensen wants to merge 4 commits intodmidk:mainfrom
AdamRJensen:add-gh-test-workflow
Open

Create GH test workflow#7
AdamRJensen wants to merge 4 commits intodmidk:mainfrom
AdamRJensen:add-gh-test-workflow

Conversation

@AdamRJensen
Copy link
Copy Markdown

@AdamRJensen AdamRJensen commented Mar 23, 2026

Related to #5

I took a first stab at creating a test workflow for the package.

Since I don't have mataintainers rights to this repo, it is hard for me to test that it works.

Note, I've added a dummy example test file called test_example.py.

@khintz khintz added the enhancement New feature or request label Mar 25, 2026
@irenelivia irenelivia requested review from elbdmi and khintz March 26, 2026 11:47
@elbdmi
Copy link
Copy Markdown

elbdmi commented Mar 26, 2026

Hi Adam. I just approved the workflow to run just for you to test it. When you are ready you can tell me to take a look at the pr

@AdamRJensen
Copy link
Copy Markdown
Author

Some tests are failiing due to pysteps not being available for Python 3.14 - I'll therefore remove this python version from the test matrix.

@AdamRJensen
Copy link
Copy Markdown
Author

@elbdmi Please approve it again.

@AdamRJensen
Copy link
Copy Markdown
Author

@elbdmi This is ready for a review. Note that macos was removed due to pysteps being incompatible with modern mac chips.

Comment on lines +19 to +30
steps:
- uses: actions/checkout@v4
- name: Set up conda
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
channels: conda-forge,defaults
channel-priority: strict
activate-environment: sunflow
- name: Install pysteps via conda
shell: bash -el {0}
run: conda install -y pysteps
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would avoid using conda altogether. Especially in the pipeline, because it's very slow. In the instructions we have described how to use it with pdm so testing with that is probably preferable. However, using uv instead would speed it even more up, and thereby we will spend less time on GitHub Actions.

Comment on lines +3 to +6
on:
push:
branches: [ main ]
pull_request:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to run this on tags also.

matrix:
python-version: ["3.12", "3.13"]
# pysteps do not support mac with Apple chips
os: [ubuntu-latest, windows-latest]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@irenelivia @elbdmi, we have to discuss if we want to or aim to support Windows also. I don't mind at all, it's just that the production environment we are targeting is Linux only, but it could be both x86 and ARM in the future. However, for now we can just put it in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants