Skip to content

Commit

Permalink
Bump to miniforge and py3.13 (#139)
Browse files Browse the repository at this point in the history
* Bump to miniforge and py3.13
* Switch to micromamba CI
  • Loading branch information
IAlibay authored Nov 11, 2024
1 parent 020b199 commit 86a4109
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
37 changes: 19 additions & 18 deletions .github/workflows/gh-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:

defaults:
run:
shell: bash -l {0}
shell: bash -leo pipefail {0}

jobs:
unittests:
Expand All @@ -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: |
Expand All @@ -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 }}
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
Expand Down

0 comments on commit 86a4109

Please sign in to comment.