Skip to content

Commit

Permalink
adding back conda and flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollman committed Mar 6, 2024
1 parent 1cee098 commit a413273
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/materialization_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,21 @@ jobs:
key: ${{ runner.os }}-pip-${{ hashFiles('**/test_requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
auto-activate-base: true
python-version: 3.9
- name: Install dependencies
shell: bash -l {0}
run: |
pip install flake8 pytest
pip install -r requirements.txt
if [ -f test_requirements.txt ]; then pip install -r test_requirements.txt; fi
- name: Lint with flake8
shell: bash -l {0}
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

0 comments on commit a413273

Please sign in to comment.