test build 2

This commit is contained in:
jscampucci
2025-06-25 17:16:10 +02:00
parent dce1c18998
commit 838e8a7c61

40
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,40 @@
name: Build
on:
push:
branches:
- 16.0
jobs:
unit-test:
name: Run unit tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: 3.11
- name: Install dependencies
working-directory: helpdesk_transfer_timesheet_to_task
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
working-directory: helpdesk_transfer_timesheet_to_task
run: |
pytest --cov --junitxml=junit.xml
# Copy and paste the codecov/test-results-action here
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}