Skip to content

Commit

Permalink
Update to support Spacepy 0.5.0 vesion (#26)
Browse files Browse the repository at this point in the history
* Remove hcore

* Add version pinning to pyproject.toml and lint with Black

* Add version pinning to pyproject.toml and lint with Black

* Add version pinning to pyproject.toml and lint with Black

* Test binaries

* Update workflows
  • Loading branch information
dbarrous authored Apr 10, 2024
1 parent acd259b commit 8c94710
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 33 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ on:
- cron: 0 0 * * * # Scheduled run every day at midnight
jobs:
build:

runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
Expand All @@ -30,14 +29,10 @@ jobs:
- name: Install dependencies
run: |
pip install pip setuptools wheel --upgrade
# Install spacepy without build isolation to avoid issues with numpy
pip install numpy==1.26.3
pip install spacepy==0.4.1 --no-build-isolation
python -m pip install -e '.[style]'
python -m pip install -e .[style]
- name: Lint with Black
run: |
black --check --diff hermes_spani
- name: flake8
run: |
flake8 --count hermes_spani
12 changes: 4 additions & 8 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@ on:
workflow_dispatch: # For on demand runs
schedule:
- cron: 0 0 * * * # Scheduled run every day at midnight

jobs:
build:

runs-on: ${{ matrix.platform }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest]
python-version: [3.9]

steps:
Expand All @@ -30,10 +29,7 @@ jobs:
- name: Install dependencies
run: |
pip install pip setuptools wheel --upgrade
# Install spacepy without build isolation to avoid issues with numpy
pip install numpy==1.26.3
pip install spacepy==0.4.1 --no-build-isolation
python -m pip install -e '.[docs]'
python -m pip install -e .[docs]
- name: Build docs
working-directory: ./docs
run: make html
run: make html
21 changes: 6 additions & 15 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ on:
pull_request:
branches:
- main
workflow_dispatch: # For on demand runs
schedule:
- cron: 0 0 * * * # Scheduled run every day at midnight
workflow_dispatch: # For on demand runs
schedule:
- cron: 0 0 * * * # Scheduled run every day at midnight
jobs:
build:

runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
Expand All @@ -30,18 +29,10 @@ jobs:
- name: Install dependencies
run: |
pip install pip setuptools wheel --upgrade
# Install spacepy without build isolation to avoid issues with numpy
pip install numpy==1.26.3
pip install spacepy==0.4.1 --no-build-isolation
pip install -e .[test]
if: ${{ !(matrix.platform == 'windows-latest' && matrix.python-version == '3.11') }}
- name: Run tests
- name: Run tests on Windows, Linux and MacOS
run: pytest --pyargs hermes_spani --cov hermes_spani
env:
PLATFORM: ${{ matrix.platform }}
# Skip Windows Python 3.11 tests until SpacePy is updated
if: ${{ !(matrix.platform == 'windows-latest' && matrix.python-version == '3.11') }}

- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v3
# Skip Windows Python 3.11 tests until SpacePy is updated
if: ${{ !(matrix.platform == 'windows-latest' && matrix.python-version == '3.11') }}
4 changes: 0 additions & 4 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ build:
python: "3.9"
jobs:
pre_build:
- wget https://sdc-aws-support.s3.amazonaws.com/cdf-binaries/latest.zip
- unzip latest.zip
- pip install pip setuptools wheel --upgrade
- pip install numpy
- pip install spacepy --no-build-isolation
- pip install -e .[docs,all]

# Optionally build your docs in additional formats such as PDF and ePub
Expand Down

0 comments on commit 8c94710

Please sign in to comment.