Skip to content

Commit

Permalink
Add CI which tests latest conda pkgs from upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
tkittel committed Feb 15, 2025
1 parent fbb60a1 commit e2a1072
Showing 1 changed file with 71 additions and 0 deletions.
71 changes: 71 additions & 0 deletions .github/workflows/latestconda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: latestconda
on:
schedule:
- cron: '30 10 * * 2' # 10:30 every Tuesday
workflow_dispatch:
push:

jobs:
build:
strategy:
#fail-fast: false
matrix:
include:
- { os: ubuntu-24.04-arm } #arm
- { os: ubuntu-latest } #intel
- { os: macos-latest } #arm
- { os: macos-13 } #intel
- { os: windows-latest }
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -el {0}
env:
CONDA_SOLVER: libmamba

steps:
- name: Prepare conda yml
shell: python
run: |
from textwrap import dedent
import pathlib
pathlib.Path('theenv.yml').write_text(dedent(
"""
name: theenv
channels:
- nodefaults
- conda-forge
dependencies:
- python
- pip
- ncrystal >=4.0.0
"""
))
- name: Set up conda env
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: theenv
environment-file: ./theenv.yml
auto-activate-base: false

- name: Inspect environment
run: |
conda info
conda list
ncrystal-config -s
nctool --test
#fixme:
- name: Checkout
uses: actions/checkout@v4
with:
ref: tk_volatile
path: ./src_co

- name: Install ncrystal-verify
run: pip install ./src_co/ncrystal_verify

- name: Run ncrystal-verify
run: ncrystal-verify

0 comments on commit e2a1072

Please sign in to comment.