Skip to content

Commit

Permalink
test dependencies as well
Browse files Browse the repository at this point in the history
  • Loading branch information
jnnsbrr committed Jan 7, 2025
1 parent 5a65348 commit d95a2e1
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,50 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout code
# Step 1: Checkout pycoupler repository
- name: Checkout pycoupler repository
uses: actions/checkout@v3

# Step 2: Set up Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'

- name: Install dependencies
# Step 3: Install dependencies for pycoupler
- name: Install dependencies for pycoupler
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
pip install .
pip install -e .[dev]
- name: Run tests
# Step 4: Run pycoupler tests
- name: Run pycoupler tests
run: |
pytest --cov --cov-report=xml
# Step 5: Clone and test pycopanlpjml
- name: Clone pycopanlpjml repository
run: |
git clone [email protected]:pik-copan/pycopanlpjml.git
cd pycopanlpjml
python -m pip install -e .[dev]
# Ensure pycoupler is installed as a dependency for pycopanlpjml
pip install ../ # This installs the local version of pycoupler
pytest
# Step 6: Upload coverage reports to Codecov
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}

# Step 7: Check code formatting with Black
- name: Check code formatting with Black
run: |
black --check .
# Step 8: Lint code with Flake8
- name: Lint code with Flake8
run: |
flake8 .
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cff-version: 1.2.0
message: If you use this software, please cite it using the metadata from this file.
type: software
title: 'pycoupler: dynamic model coupling of LPJmL'
version: 1.2.3
version: 1.2.4
date-released: '2025-01-07'
abstract: An LPJmL-Python interface for operating LPJmL in a Python environment
and coupling it with Python models, programmes or simple programming scripts.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "pycoupler"
version = "1.2.3"
version = "1.2.4"
description = "dynamic model coupling of LPJmL"
readme = "README.md"
license = {file = "LICENSE.md"}
Expand Down

0 comments on commit d95a2e1

Please sign in to comment.