From e235c9fa1d08f731d79d3ca2da626bd3489d6538 Mon Sep 17 00:00:00 2001 From: ChristinaMoore Date: Wed, 1 Nov 2023 20:38:09 +0000 Subject: [PATCH] build: add first test github action --- .github/workflows/hello_world.yml | 6 ++++++ src/example.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/hello_world.yml b/.github/workflows/hello_world.yml index 1f284ab..de6e47d 100644 --- a/.github/workflows/hello_world.yml +++ b/.github/workflows/hello_world.yml @@ -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/ \ No newline at end of file diff --git a/src/example.py b/src/example.py index d05a819..cafa3ac 100644 --- a/src/example.py +++ b/src/example.py @@ -2,4 +2,4 @@ def add(a, b): return a + b def subtract(a, b): - return a - b + return a-b