Skip to content

Commit

Permalink
Rename workflow file and update formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pnedkov committed Jan 19, 2024
1 parent fa680c6 commit 9d5d461
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 42 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Python Lint and Test

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

permissions:
contents: read

jobs:
python-lint-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f resources/requirements.txt ]; then pip install -r resources/requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 ipask/ --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 ipask/ --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
42 changes: 0 additions & 42 deletions .github/workflows/python_lint.yml

This file was deleted.

0 comments on commit 9d5d461

Please sign in to comment.