mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
35 lines
745 B
YAML
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
|