From d95a2e13e5821896c452f1fbfc6a69d0a6953c5b Mon Sep 17 00:00:00 2001 From: Jannes Date: Tue, 7 Jan 2025 17:18:14 +0100 Subject: [PATCH] test dependencies as well --- .github/workflows/check.yml | 24 ++++++++++++++++++++---- CITATION.cff | 2 +- pyproject.toml | 2 +- 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 2791d65..bd39433 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -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 git@github.com: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 . diff --git a/CITATION.cff b/CITATION.cff index a40ada0..297468a 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -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. diff --git a/pyproject.toml b/pyproject.toml index bb740e3..e52ed46 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"}