Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 43 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,18 @@ jobs:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for all branches and tags.
- name: Create conda environment
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/setup-micromamba@v2
with:
cache-downloads: true
micromamba-version: "latest"
environment-file: ci/environment.yml
extra-specs: |
init-shell: >-
bash
cache-environment: true
cache-downloads: true
post-cleanup: "all"
create-args: |
python=${{ matrix.python-version }}

- name: Install ecgtools
Expand All @@ -45,10 +50,43 @@ jobs:
python -m pytest

- name: Upload code coverage to Codecov
uses: codecov/codecov-action@v4.5.0
uses: codecov/codecov-action@v5.4.0
with:
file: ./coverage.xml
flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: false
upstream-dev:
name: upstream-dev
if: github.repository == 'ncar-xdev/ecgtools'
runs-on: ubuntu-latest
timeout-minutes: 30
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for all branches and tags.

- name: set up conda environment
uses: mamba-org/setup-micromamba@v2
with:
environment-file: ci/environment-upstream-dev.yml
init-shell: >-
bash
cache-environment: true
cache-downloads: true
post-cleanup: "all"
create-args: |
python=3.12

- name: Install ecgtools
run: |
python -m pip install -e . --no-deps --force-reinstall
conda list

- name: Run Tests
run: |
python -m pytest
2 changes: 1 addition & 1 deletion .github/workflows/pypi-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: 3.9
python-version: "3.11"

- name: Install dependencies
run: |
Expand Down
59 changes: 0 additions & 59 deletions .github/workflows/upstream-dev-ci.yaml

This file was deleted.

5 changes: 4 additions & 1 deletion readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
version: 2
conda:
environment: ci/environment-docs.yml
sphinx:
configuration: docs/source/conf.py
fail_on_warning: false
build:
os: "ubuntu-20.04"
tools:
python: "mambaforge-4.10"
python: "mambaforge-latest"
Loading