Skip to content

Commit

Permalink
cont int yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alongd committed Apr 27, 2021
1 parent 85609ee commit ada02ec
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/cont_int.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,34 @@
name: continuous integration

on: [push]
on:
push:
pull_request:
branches:
- master
types: [opened, synchronize, reopened, ready_for_review, review_requested]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]
defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v2

- name: Set up miniconda Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: arc_env
environment-file: environment.yml
python-version: ${{ matrix.python-version }}
activate-environment: arc_env
python-version: 3.7
auto-activate-base: false

- name: Install codecov
run: conda install -y -c conda-forge codecov

- name: Install dependencies
shell: bash -l {0}
run: |
export PYTHONPATH=$PYTHONPATH:$(pwd)
conda activate arc_env
Expand All @@ -40,7 +47,6 @@ jobs:
conda list
- name: Lint with flake8
shell: bash -l {0}
run: |
conda install flake8
# stop the build if there are Python syntax errors or undefined names
Expand All @@ -49,7 +55,6 @@ jobs:
python -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with nosetests
shell: bash -l {0}
run: |
cd ..
cd RMG-Py
Expand Down

0 comments on commit ada02ec

Please sign in to comment.