renovate[bot] 824f6d2f1b
chore(deps): update codecov/codecov-action action to v5 (#3111)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[codecov/codecov-action](https://redirect.github.com/codecov/codecov-action)
| action | major | `v4` -> `v5` |

---

### Release Notes

<details>
<summary>codecov/codecov-action (codecov/codecov-action)</summary>

###
[`v5`](https://redirect.github.com/codecov/codecov-action/compare/v4...v5)

[Compare
Source](https://redirect.github.com/codecov/codecov-action/compare/v4...v5)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/libretime/libretime).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMS41IiwidXBkYXRlZEluVmVyIjoiMzkuMTEuNSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiY2kiLCJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-16 00:29:08 +00:00

84 lines
1.7 KiB
YAML

name: API
on:
workflow_dispatch:
push:
branches: [main, stable-*]
paths:
- .github/workflows/_python.yml
- .github/workflows/api.yml
- api/**
- shared/**
- tools/python*
pull_request:
branches: [main, stable-*]
paths:
- .github/workflows/_python.yml
- .github/workflows/api.yml
- api/**
- shared/**
- tools/python*
schedule:
- cron: 0 1 * * 1
jobs:
python:
uses: ./.github/workflows/_python.yml
with:
context: api
test: false
test-with-database:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
release:
- focal
- bullseye
- jammy
services:
postgres:
image: postgres
env:
POSTGRES_USER: libretime
POSTGRES_PASSWORD: libretime
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
container:
image: ghcr.io/libretime/libretime-dev:${{ matrix.release }}
options: --user 1001:1001
defaults:
run:
shell: bash
env:
LIBRETIME_DATABASE_HOST: postgres
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ matrix.release }}-pip-api-${{ hashFiles('api/**/setup.py') }}
restore-keys: |
${{ matrix.release }}-pip-api
- name: Test
run: make test-coverage
working-directory: api
- name: Report coverage
uses: codecov/codecov-action@v5
with:
files: api/coverage.xml
flags: api
name: api