Skip to content

Commit 123b48a

Browse files
committed
Merge branch 'main' into joseph/branding
2 parents 6be4859 + c35d932 commit 123b48a

19 files changed

Lines changed: 619 additions & 1000 deletions

.github/workflows/build_assets.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
default: false
1010
description: "Attach artifacts to a release"
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
build_assets:
1417
name: Build packages - ${{ matrix.os }}

.github/workflows/build_for_pypi.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
default: false
1010
description: "Build for PyPi"
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
build_src_for_pypi:
1417
runs-on: ubuntu-latest

.github/workflows/ci-job.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
branches:
1212
- main
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
lint:
1619
runs-on: ubuntu-latest
@@ -33,14 +36,12 @@ jobs:
3336

3437
- name: Install dependencies
3538
run: |
36-
python -m pip install --upgrade pip
37-
pip install -r codecov-cli/requirements.txt
38-
python -m pip install -e codecov-cli
39-
python -m pip install -e prevent-cli
39+
python -m pip install uv
40+
uv sync --project prevent-cli
4041
4142
- name: Run command_dump
4243
run: |
43-
python command_dump.py
44+
make command_dump
4445
4546
- name: Detect changes on commit
4647
run: |
@@ -63,7 +64,6 @@ jobs:
6364
python-version: "3.12"
6465

6566
- name: Install CLI
66-
# todo: update this to dogfood prevent cli, maybe try both?
6767
run: |
6868
pip install codecov-cli
6969
@@ -94,27 +94,25 @@ jobs:
9494

9595
- name: Install dependencies
9696
run: |
97-
python -m pip install --upgrade pip
98-
pip install -r codecov-cli/requirements.txt
99-
python -m pip install -e codecov-cli
100-
python -m pip install -e prevent-cli
101-
pip install -r codecov-cli/tests/requirements.txt
97+
python -m pip install uv
98+
uv sync --project codecov-cli
99+
uv sync --project prevent-cli
102100
103101
- name: Test with pytest
104102
run: |
105103
cd codecov-cli
106-
pytest --cov --junitxml=${{matrix.os}}-${{matrix.python-version}}junit.xml
104+
uv run pytest --cov --junitxml=${{matrix.os}}-${{matrix.python-version}}junit.xml
107105
env:
108106
CODECOV_ENV: test
109107

110108
- name: Dogfooding codecov-cli
111109
if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'getsentry' }}
112110
run: |
113-
codecovcli -v do-upload --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} --plugin pycoverage --flag python${{matrix.python-version}} --flag codecovcli
114-
codecovcli do-upload --report-type test_results --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} --plugin pycoverage --flag python${{matrix.python-version}} --flag codecovcli
111+
uv run --project codecov-cli codecovcli -v do-upload --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} --plugin pycoverage --flag python${{matrix.python-version}} --flag codecovcli
112+
uv run --project codecov-cli codecovcli do-upload --report-type test_results --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} --plugin pycoverage --flag python${{matrix.python-version}} --flag codecovcli
115113
116114
- name: Dogfooding sentry-prevent-cli
117115
if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'getsentry' }}
118116
run: |
119-
sentry-prevent-cli -v do-upload --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} --plugin pycoverage --flag python${{matrix.python-version}} --flag sentry-prevent-cli
120-
sentry-prevent-cli do-upload --report-type test_results --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} --plugin pycoverage --flag python${{matrix.python-version}} --flag sentry-prevent-cli
117+
uv run --project prevent-cli sentry-prevent-cli -v do-upload --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} --plugin pycoverage --flag python${{matrix.python-version}} --flag sentry-prevent-cli
118+
uv run --project prevent-cli sentry-prevent-cli do-upload --report-type test_results --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} --plugin pycoverage --flag python${{matrix.python-version}} --flag sentry-prevent-cli

.github/workflows/create_release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- main
77
types: [closed]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
create-release:
1114
if: ${{ github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/') && github.repository_owner == 'getsentry' }}

.github/workflows/create_release_pr.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
description: 'Name of version (ie 23.9.5)'
88
required: true
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
create-release-pr:
1215
name: Create PR

.github/workflows/enforce-license-compliance.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
pull_request:
55
branches: [main, master]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
enforce-license-compliance:
912
runs-on: ubuntu-latest

.github/workflows/release_flow.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
types:
66
- created
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
build_for_pypi:
1013
permissions:

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ lint:
2323
make lint.install
2424
make lint.run
2525

26+
command_dump:
27+
cd prevent-cli && uv run command_dump.py
28+
2629
tag.release:
2730
ifeq ($(shell echo ${version} | egrep "${tag_regex}"),)
2831
@echo "Version '${version}' is not a valid git tag.\nUsage: make tag.release version=v0.0.0"

codecov-cli/pyproject.toml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,17 @@ authors = [{ name = "Sentry", email = "oss@sentry.io" }]
77
description = "Codecov Command Line Interface"
88
dependencies = [
99
"click==8.*",
10-
"httpx==0.27.*",
1110
"ijson==3.*",
12-
"pyyaml==6.*",
13-
"regex",
11+
"PyYAML==6.*",
1412
"responses==0.21.*",
15-
"sentry-sdk>=2.20.0",
13+
"sentry-sdk==2.*",
1614
"test-results-parser==0.5.4",
17-
"wrapt>=1.17.2",
1815
]
1916
license = { file = "LICENSE" }
2017
name = "codecov-cli"
2118
readme = "README.md"
2219
requires-python = ">= 3.9"
23-
version = "11.0.0"
20+
version = "10.4.0"
2421

2522
[project.scripts]
2623
codecov = "codecov_cli.main:run"
@@ -32,12 +29,12 @@ env = ["CODECOV_ENV=test"]
3229
[tool.setuptools]
3330
packages = ["codecov_cli"]
3431

35-
[tool.cibuildwheel]
36-
skip = ["pp*", "cp313-*"]
37-
test-command = "codecovcli --help"
38-
39-
[tool.cibuildwheel.config-settings]
40-
pure-python = "true"
41-
42-
[tool.cibuildwheel.environment]
43-
PIP_CONSTRAINT = "requirements.txt"
32+
[dependency-groups]
33+
dev = [
34+
"pre-commit==3.*",
35+
"pytest==7.*",
36+
"pytest-asyncio==0.21.1",
37+
"pytest-cov==4.*",
38+
"pytest-env==1.*",
39+
"pytest-mock==3.*",
40+
]

0 commit comments

Comments
 (0)