diff --git a/.github/workflows/gh-ci.yaml b/.github/workflows/gh-ci.yaml index 85d811d..29a6abf 100644 --- a/.github/workflows/gh-ci.yaml +++ b/.github/workflows/gh-ci.yaml @@ -16,7 +16,7 @@ concurrency: defaults: run: - shell: bash -l {0} + shell: bash -leo pipefail {0} jobs: unittests: @@ -26,37 +26,37 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, ] - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] include: - os: windows-latest - python-version: "3.12" + python-version: "3.13" - os: macos-latest - python-version: "3.12" + python-version: "3.13" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - name: setup_miniconda - uses: conda-incubator/setup-miniconda@v2 + - name: setup_micromamba + uses: mamba-org/setup-micromamba@v2 with: - python-version: ${{ matrix.python-version }} - auto-update-conda: true - channel-priority: flexible - channels: conda-forge - add-pip-as-python-dependency: true - use-mamba: true - miniforge-variant: Mambaforge + environment-name: mda + create-args: >- + python=${{ matrix.python-version }} + pip + condarc: | + channels: + - conda-forge - name: install package deps run: | - mamba install numpy scipy mrcfile pytest pytest-cov codecov + micromamba install numpy scipy mrcfile pytest pytest-cov codecov - name: check install run: | which python which pip - conda info - conda list + micromamba info + micromamba list - name: install package run: | @@ -67,9 +67,10 @@ jobs: pytest -v --cov=gridData --cov-report=xml --color=yes ./gridData/tests - name: codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 if: github.event_name != 'schedule' with: file: coverage.xml fail_ci_if_error: True verbose: True + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/pyproject.toml b/pyproject.toml index 363e3e4..099682f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,6 +29,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Topic :: Scientific/Engineering", "Topic :: Software Development :: Libraries :: Python Modules", ]