Skip to content

Commit

Permalink
use CI file from mosdef repos
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjonesBSU committed Jul 20, 2024
1 parent d0a7011 commit 48899de
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 143 deletions.
80 changes: 80 additions & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: CI

on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
schedule:
- cron: "0 0 * * *"

jobs:
test:
if: github.event.pull_request.draft == false
name: MSIBI Tests (python)
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]

defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v4
name: Checkout Branch / Pull Request

- name: Install Mamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment-dev.yml
create-args: >-
python=${{ matrix.python-version }}
- name: Install Package
run: python -m pip install -e .

- name: Test (OS -> ${{ matrix.os }} / Python -> ${{ matrix.python-version }})
run: python -m pytest -v --cov=./ --cov-report=xml --cov-append --color yes

- name: Upload Coverage Report
uses: codecov/codecov-action@v4
with:
name: MSIBI-Coverage
verbose: true

arch-test:
if: github.event.pull_request.draft == false
name: MSIBI Tests (arch)
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macOS-latest, macOS-13, ubuntu-latest]
python-version: ["3.12"]

defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v4
name: Checkout Branch / Pull Request

- name: Install Mamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment-dev.yml
create-args: >-
python=${{ matrix.python-version }}
- name: Install Package
run: python -m pip install -e .

- name: Test (OS -> ${{ matrix.os }} / Python -> ${{ matrix.python-version }})
run: python -m pytest -v --cov=./ --cov-report=xml --cov-append --color yes
143 changes: 0 additions & 143 deletions .github/workflows/pytest.yml

This file was deleted.

0 comments on commit 48899de

Please sign in to comment.