From c68b21b36c687f9f55a14c904f28ca98fa24c459 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Schm=C3=B6lder?= Date: Wed, 4 Dec 2024 13:57:54 +0100 Subject: [PATCH 1/2] Update pipeline --- .github/workflows/pipeline.yml | 78 +++++++++++++++++----------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 14033df..a7fb3c5 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -19,48 +19,48 @@ jobs: matrix: python-version: ["3.10", "3.11", "3.12"] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - - name: Get Date - id: get-date - run: echo "today=$(/bin/date -u '+%Y%m%d')" >> $GITHUB_OUTPUT - shell: bash + - name: Get Date + id: get-date + run: echo "today=$(/bin/date -u '+%Y%m%d')" >> $GITHUB_OUTPUT + shell: bash - - name: Setup Conda Environment - uses: conda-incubator/setup-miniconda@v3 - with: - miniforge-variant: Mambaforge - use-mamba: true - activate-environment: cadet-python - channels: conda-forge, + - name: Setup Conda Environment + uses: conda-incubator/setup-miniconda@v3 + with: + miniforge-version: latest + use-mamba: true + activate-environment: cadet-python + channels: conda-forge, - - name: Cache conda - uses: actions/cache@v3 - env: - # Increase this value to reset cache if environment.yml has not changed - CACHE_NUMBER: 0 - with: - path: ${{ env.CONDA }}/envs - key: python_${{ matrix.python-version }}-${{ steps.get-date.outputs.today }}-${{ env.CACHE_NUMBER }} + - name: Cache conda + uses: actions/cache@v3 + env: + # Increase this value to reset cache if environment.yml has not changed + CACHE_NUMBER: 0 + with: + path: ${{ env.CONDA }}/envs + key: python_${{ matrix.python-version }}-${{ steps.get-date.outputs.today }}-${{ env.CACHE_NUMBER }} - - name: Set up python env - run: | - mamba install python==${{ matrix.python-version }} - pip install . - - name: Install pypa/build - run: | - python -m pip install build --user + - name: Set up python env + run: | + mamba install python==${{ matrix.python-version }} + pip install . + - name: Install pypa/build + run: | + python -m pip install build --user - - name: Build binary wheel and source tarball - run: | - python -m build --sdist --wheel --outdir dist/ . + - name: Build binary wheel and source tarball + run: | + python -m build --sdist --wheel --outdir dist/ . - - name: Test Wheel install and import - run: | - python -c "import cadet; print(cadet.__version__)" - cd .. - - name: Test with pytest - run: | - pip install .[testing] - mamba install cadet -c conda-forge - pytest tests --rootdir=tests -m "not slow and not local" + - name: Test Wheel install and import + run: | + python -c "import cadet; print(cadet.__version__)" + cd .. + - name: Test with pytest + run: | + pip install .[testing] + mamba install cadet>5.0.2 -c conda-forge + pytest tests --rootdir=tests -m "not slow and not local" From ea2e3e9be012346dad2412e5485d9e842d475344 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Schm=C3=B6lder?= Date: Mon, 2 Dec 2024 13:17:56 +0100 Subject: [PATCH 2/2] v1.0.2 --- cadet/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cadet/__init__.py b/cadet/__init__.py index f0a0d1d..ffdccb4 100644 --- a/cadet/__init__.py +++ b/cadet/__init__.py @@ -1,6 +1,6 @@ name = 'CADET-Python' -__version__ = "1.0.1" +__version__ = "1.0.2" from .h5 import H5 from .cadet import Cadet