Skip to content

Commit 86a4109

Browse files
authored
Bump to miniforge and py3.13 (#139)
* Bump to miniforge and py3.13 * Switch to micromamba CI
1 parent 020b199 commit 86a4109

File tree

2 files changed

+20
-18
lines changed

2 files changed

+20
-18
lines changed

.github/workflows/gh-ci.yaml

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ concurrency:
1616

1717
defaults:
1818
run:
19-
shell: bash -l {0}
19+
shell: bash -leo pipefail {0}
2020

2121
jobs:
2222
unittests:
@@ -26,37 +26,37 @@ jobs:
2626
fail-fast: false
2727
matrix:
2828
os: [ubuntu-latest, ]
29-
python-version: ["3.9", "3.10", "3.11", "3.12"]
29+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
3030
include:
3131
- os: windows-latest
32-
python-version: "3.12"
32+
python-version: "3.13"
3333
- os: macos-latest
34-
python-version: "3.12"
34+
python-version: "3.13"
3535

3636
steps:
37-
- uses: actions/checkout@v2
37+
- uses: actions/checkout@v4
3838

39-
- name: setup_miniconda
40-
uses: conda-incubator/setup-miniconda@v2
39+
- name: setup_micromamba
40+
uses: mamba-org/setup-micromamba@v2
4141
with:
42-
python-version: ${{ matrix.python-version }}
43-
auto-update-conda: true
44-
channel-priority: flexible
45-
channels: conda-forge
46-
add-pip-as-python-dependency: true
47-
use-mamba: true
48-
miniforge-variant: Mambaforge
42+
environment-name: mda
43+
create-args: >-
44+
python=${{ matrix.python-version }}
45+
pip
46+
condarc: |
47+
channels:
48+
- conda-forge
4949
5050
- name: install package deps
5151
run: |
52-
mamba install numpy scipy mrcfile pytest pytest-cov codecov
52+
micromamba install numpy scipy mrcfile pytest pytest-cov codecov
5353
5454
- name: check install
5555
run: |
5656
which python
5757
which pip
58-
conda info
59-
conda list
58+
micromamba info
59+
micromamba list
6060
6161
- name: install package
6262
run: |
@@ -67,9 +67,10 @@ jobs:
6767
pytest -v --cov=gridData --cov-report=xml --color=yes ./gridData/tests
6868
6969
- name: codecov
70-
uses: codecov/codecov-action@v3
70+
uses: codecov/codecov-action@v4
7171
if: github.event_name != 'schedule'
7272
with:
7373
file: coverage.xml
7474
fail_ci_if_error: True
7575
verbose: True
76+
token: ${{ secrets.CODECOV_TOKEN }}

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ classifiers = [
2929
"Programming Language :: Python :: 3.10",
3030
"Programming Language :: Python :: 3.11",
3131
"Programming Language :: Python :: 3.12",
32+
"Programming Language :: Python :: 3.13",
3233
"Topic :: Scientific/Engineering",
3334
"Topic :: Software Development :: Libraries :: Python Modules",
3435
]

0 commit comments

Comments
 (0)