Skip to content

Commit

Permalink
build: add first test github action
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristinaMoore committed Nov 1, 2023
1 parent 965bea2 commit e235c9f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/hello_world.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,11 @@ jobs:
python -m pip install --upgrade pip
pip install pytest
- name: Install flake8
run: pip install flake8

- name: Run flake8
run: flake8 src/ tests/

- name: Run tests
run: pytest tests/
2 changes: 1 addition & 1 deletion src/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ def add(a, b):
return a + b

def subtract(a, b):
return a - b
return a-b

0 comments on commit e235c9f

Please sign in to comment.