Skip to content

Commit

Permalink
chore: add GitHub Actions workflow for automated testing
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
atxtechbro committed Dec 22, 2024
1 parent 7a3daec commit ce5367b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit ce5367b

Please sign in to comment.