From 2add9e5263f848ed7eda42a4e86c845ebd1b6e9a Mon Sep 17 00:00:00 2001 From: Mees Fix Date: Tue, 14 Sep 2021 13:08:41 -0400 Subject: [PATCH] Updating CI trigger and adding pytest --- .github/workflows/ci.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f559eaa8..a0788fcb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,11 +3,7 @@ name: pysiaf CI -on: - push: - branches: [ $default-branch ] - pull_request: - branches: [ $default-branch ] +on: [push, pull_request] jobs: build: @@ -26,14 +22,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install flake8 pytest + python -m pip install pytest if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Lint with flake8 - run: | - # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Install Package run: | python setup.py install + - name: Run Tests + run: | + pytest \ No newline at end of file