From ad3fbd239110e954b8bd7510b09bbc9e3e9db3b1 Mon Sep 17 00:00:00 2001 From: Kibrewossen <47031138+kebtes@users.noreply.github.com> Date: Fri, 18 Apr 2025 12:13:08 +0300 Subject: [PATCH] Add GitHub Actions workflow for running tests --- .github/workflows/test.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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..ba568fb --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,30 @@ +name: Run Tests + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.13' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -e . + pip install -r requirements.txt + + - name: Set Python Path and Run Tests + run: | + pytest tests/