Bump to miniforge and py3.13 #282
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GH Actions CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
schedule: | |
# 3 am Tuesdays and Fridays | |
- cron: "0 3 * * 2,5" | |
concurrency: | |
group: "${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }}" | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash -l {0} | |
jobs: | |
unittests: | |
if: "github.repository == 'MDAnalysis/GridDataFormats'" | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, ] | |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
include: | |
- os: windows-latest | |
python-version: "3.13" | |
- os: macos-latest | |
python-version: "3.13" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: setup_miniconda | |
uses: conda-incubator/setup-miniconda@v3 | |
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-version: latest | |
- name: install package deps | |
run: | | |
mamba install numpy scipy mrcfile pytest pytest-cov codecov | |
- name: check install | |
run: | | |
which python | |
which pip | |
conda info | |
conda list | |
- name: install package | |
run: | | |
pip install -v . | |
- name: run unit tests | |
run: | | |
pytest -v --cov=gridData --cov-report=xml --color=yes ./gridData/tests | |
- name: codecov | |
uses: codecov/codecov-action@v4 | |
if: github.event_name != 'schedule' | |
with: | |
file: coverage.xml | |
fail_ci_if_error: True | |
verbose: True |