diff --git a/.gitea/workflows/test-python.yml b/.gitea/workflows/test-python.yml new file mode 100644 index 0000000..2697eaf --- /dev/null +++ b/.gitea/workflows/test-python.yml @@ -0,0 +1,29 @@ +name: Test Python Application + +on: + push: + branches: + - main + pull_request: + types: [opened, synchronize, reopened] + +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.10 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Run tests + run: | + pytest tests/