Skip to content

Commit

Permalink
Merge pull request #23 from willjos/feature/ISSUE-9/Set_up_GitHub_Act…
Browse files Browse the repository at this point in the history
…ions

added test file and github action workflow to run tests
  • Loading branch information
audreyfeldroy authored Sep 25, 2023
2 parents 1830632 + 2325153 commit 7828e7c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Project Tests
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python 3.x
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Test with pytest
run: python -m pytest ../../tests/tests.py
2 changes: 2 additions & 0 deletions tests/tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_test(): # dummy test
assert True

0 comments on commit 7828e7c

Please sign in to comment.