mirror of
https://github.com/wekan/wekan.git
synced 2026-01-01 07:08:49 +01:00
37 lines
739 B
YAML
37 lines
739 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=tests_r --cov-report=xml tests_r/
|
|
|
|
- name: Upload coverage reports to Codecov
|
|
uses: codecov/codecov-action@v5
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
slug: RabeeaFaraj/wekan_rabeea
|
|
|
|
|