1111 branches :
1212 - main
1313
14+ permissions :
15+ contents : read
16+
1417jobs :
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 : |
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
0 commit comments