Skip to content

Commit

Permalink
Merge pull request #4 from T313C0mun1s7/feature/add-ci
Browse files Browse the repository at this point in the history
Add CI workflow to run tests
  • Loading branch information
T313C0mun1s7 authored Jan 7, 2025
2 parents 035b48b + 2c28a27 commit 2b55d09
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Run Tests

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt || true # Skip if no requirements.txt
- name: Run tests
run: python -m unittest discover test

0 comments on commit 2b55d09

Please sign in to comment.