Skip to content

Commit

Permalink
Adds GH CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaura committed May 28, 2021
1 parent 31895ed commit 5a8d268
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Pull-Request-CI

on:
pull_request:
branches:
- master
push:
branches:
- master

jobs:
Build-and-Test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.6", "3.7", "3.8", "3.9"]
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup ENV
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
mamba-version: "*"
use-mamba: true
channels: conda-forge, defaults
channel-priority: strict
activate-environment: autocnet
environment-file: environment.yml
python-version: ${{ matrix.python-version }}
- name: Check build environment
run: |
conda list
- name: Install Python Package
run: |
python setup.py install
- name: Test Python Package
run: |
pytest --cov-report=xml
- name: Upload Coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8'

0 comments on commit 5a8d268

Please sign in to comment.