Skip to content

Commit ad510fa

Browse files
feat: initial boilerplate
1 parent 1871c53 commit ad510fa

20 files changed

+138
-0
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: pip
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Workflow for Codecov example-python
2+
on: [push, pull_request]
3+
jobs:
4+
run:
5+
runs-on: ubuntu-latest
6+
permissions:
7+
id-token: write
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v4
11+
- name: Set up Python 3.10
12+
uses: actions/setup-python@v4
13+
with:
14+
python-version: '3.10'
15+
- name: Install dependencies
16+
run: pip install -r requirements.txt
17+
- name: Run tests and collect coverage
18+
run: pytest --cov app --junitxml=junit.xml -o junit_family=legacy
19+
- name: Upload test results to Codecov
20+
if: ${{ !cancelled() }}
21+
uses: codecov/test-results-action@v1
22+
with:
23+
token: ${{ secrets.CODECOV_TOKEN }}
24+
- name: Upload coverage to Codecov (arg token)
25+
uses: codecov/codecov-action@main
26+
with:
27+
fail_ci_if_error: true
28+
token: ${{ secrets.CODECOV_TOKEN }}
29+
verbose: true
30+
- name: Upload coverage to Codecov (env token)
31+
uses: codecov/codecov-action@main
32+
with:
33+
fail_ci_if_error: true
34+
verbose: true
35+
env:
36+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
37+
- name: Upload coverage to Codecov (no token)
38+
uses: codecov/codecov-action@main
39+
with:
40+
fail_ci_if_error: true
41+
verbose: true
42+
- name: Upload coverage to Codecov (oidc)
43+
uses: codecov/codecov-action@main
44+
with:
45+
fail_ci_if_error: true
46+
use_oidc: true
47+
verbose: true
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Enforce License Compliance
2+
3+
on:
4+
pull_request:
5+
branches: [main, master]
6+
7+
jobs:
8+
enforce-license-compliance:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: 'Enforce License Compliance'
12+
uses: getsentry/action-enforce-license-compliance@57ba820387a1a9315a46115ee276b2968da51f3d # main
13+
with:
14+
fossa_api_key: ${{ secrets.FOSSA_API_KEY }}

app/__init__.py

Whitespace-only changes.
155 Bytes
Binary file not shown.
171 Bytes
Binary file not shown.
159 Bytes
Binary file not shown.
844 Bytes
Binary file not shown.
1 KB
Binary file not shown.
908 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)