Skip to content

Commit

Permalink
update unit test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelstanton committed Feb 12, 2024
1 parent 9db04b3 commit c2ee29f
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python Package using Conda
name: unit_test_workflow

on: [push, pull_request]

Expand All @@ -21,14 +21,15 @@ jobs:
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install -e .
# conda env update --file environment.yml --name base
- name: Lint with flake8
run: |
conda install flake8
# 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: Lint with flake8
# run: |
# conda install flake8
## 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: Test with pytest
run: |
conda install pytest
Expand Down

0 comments on commit c2ee29f

Please sign in to comment.