Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python package

on:
push:
branches-ignore:
- main
pull_request:

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
pytest:

runs-on: ubuntu-latest
if: always()

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
sudo apt-get update
sudo apt-get -y install libhdf5-dev
- name: Install package
run: |
pip install -e . --no-binary h5netcdf --no-binary h5py
pip install pytest

- name: Test with pytest
run: |
pytest -vv
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,8 @@ cython_debug/
.pypirc

# Archives
*.zip
*.zip

# Images generated from tests
/tests/**/*.png
/tests/*.png
Loading
Loading