From ce5367bdaaca37f384ae46de4b05813b67f61cf5 Mon Sep 17 00:00:00 2001 From: Morgan Joyce Date: Sat, 21 Dec 2024 21:39:14 -0600 Subject: [PATCH] chore: add GitHub Actions workflow for automated testing - Created a new workflow file (.github/workflows/test.yml) to automate testing on push and pull request events to the main branch. - Configured the workflow to set up Python, install dependencies, and run tests using pytest. --- .github/workflows/test.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..b903dab --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,27 @@ +name: Tests + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install pytest + + - name: Run tests + run: pytest tests/ \ No newline at end of file