From fc5e9ddc1779168561faef5aff5abf8bcf0aa956 Mon Sep 17 00:00:00 2001 From: Matt Johnson Date: Sun, 7 Jul 2024 19:19:53 -0700 Subject: [PATCH] add CI workflow --- .github/workflows/CI.yml | 48 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/CI.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..bcc2126 --- /dev/null +++ b/.github/workflows/CI.yml @@ -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 \ No newline at end of file