wekan/.github/workflows/api-tests.yaml
rabeeafaraj 0aa101cac0 Actions
2025-08-10 13:18:46 +03:00

35 lines
745 B
YAML

name: Run Tests
on:
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install pytest pytest-cov
- name: Run pytest with coverage
env:
WEKAN_URL: http://${{ secrets.HOST }}:80
run: |
pytest --cov=API_Testing --cov-report=xml API_Testing/
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: RabeeaFaraj/wekan_rabeea