Skip to content

Commit 1bf5553

Browse files
Merge pull request #1 from codecov/th/first-commit
feat: initial boilerplate
2 parents 1871c53 + b40892c commit 1bf5553

20 files changed

+116
-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: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
run: |
22+
pip install sentry-prevent-cli
23+
sentry-prevent-cli -v upload --report-type test-results
24+
env:
25+
PREVENT_TOKEN: ${{ secrets.PREVENT_TOKEN }}
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)