From 1788488da548f166961c6cb58ee90ed356e72f08 Mon Sep 17 00:00:00 2001 From: Kibrewossen <47031138+kebtes@users.noreply.github.com> Date: Thu, 17 Apr 2025 23:28:36 +0300 Subject: [PATCH] Add GitHub Actions workflow for running Pytest on push and pull requests --- .github/workflows/test.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..d1149d0 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ +name: Run Pytest on Push and PR + +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.13' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Run tests with pytest + run: | + pytest