Skip to content

Commit

Permalink
add CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mjohnson541 committed Jul 8, 2024
1 parent 5d5710b commit fc5e9dd
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI

on:
push:
branches:
- main
tags: '*'
pull_request:
workflow_dispatch:

jobs:
test:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
os:
- ubuntu-latest
architecture: [x64]
python-version: ['3.9']
fail-fast: false
name: Test ${{ matrix.os }} ${{ matrix.architecture }}
Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v1
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
- name: Setup Conda Environment
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: rms_env
environment-file: environment.yml
miniforge-variant: Mambaforge
miniforge-version: "latest"
python-version: ${{ matrix.python-version }}
use-mamba: true
- name: Conda Info
run: |
mamba info
mamba list
- name: Run test
run: |
nosetests pyrms/rmsTest.py

0 comments on commit fc5e9dd

Please sign in to comment.