This repository was archived by the owner on Jun 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
120 lines (108 loc) · 3.63 KB
/
ci.yml
File metadata and controls
120 lines (108 loc) · 3.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
name: API CI
on:
push:
branches:
- main
- staging
pull_request:
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: "read"
id-token: "write"
issues: "write"
pull-requests: "write"
jobs:
lint:
name: Run Lint
uses: codecov/gha-workflows/.github/workflows/lint.yml@v1.2.33
build:
name: Build API
uses: codecov/gha-workflows/.github/workflows/build-app.yml@v1.2.33
secrets: inherit
with:
repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-api' }}
cache_file: "uv.lock"
codecovstartup:
name: Codecov Startup
needs: build
uses: codecov/gha-workflows/.github/workflows/codecov-startup.yml@v1.2.33
secrets: inherit
test:
name: Test
needs: [build]
uses: codecov/gha-workflows/.github/workflows/run-tests-split.yml@v1.2.33
secrets: inherit
with:
run_integration: false
repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-api' }}
build-self-hosted:
name: Build Self Hosted API
needs: [build, test]
uses: codecov/gha-workflows/.github/workflows/self-hosted.yml@v1.2.33
secrets: inherit
with:
repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-api' }}
cache_file: "uv.lock"
staging:
name: Push Staging Image
needs: [build, test]
if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/staging' && github.repository_owner == 'codecov' }}
uses: codecov/gha-workflows/.github/workflows/push-env.yml@v1.2.33
secrets: inherit
with:
environment: staging
repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-api' }}
production:
name: Push Production Image
needs: [build, test]
if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/main' && github.repository_owner == 'codecov' }}
uses: codecov/gha-workflows/.github/workflows/push-env.yml@v1.2.33
secrets: inherit
with:
environment: production
repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-api' }}
self-hosted:
name: Push Self Hosted Image
needs: [build-self-hosted, test]
secrets: inherit
if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/main' && github.repository_owner == 'codecov' }}
uses: codecov/gha-workflows/.github/workflows/self-hosted.yml@v1.2.33
with:
push_rolling: true
repo: ${{ vars.CODECOV_IMAGE_V2 || 'codecov/self-hosted-api' }}
cache_file: "uv.lock"
upload-overwatch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Static Analysis Tools
run: |
pip install mypy==1.15.0
pip install ruff==0.3.3
- name: Install Build Dependencies
run: |
sudo apt-get update
# Install libssl1.1 from Ubuntu 20.04 repositories
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb
- name: Install Overwatch CLI
run: |
curl -o overwatch-cli https://overwatch.codecov.dev/linux/cli
chmod +x overwatch-cli
- name: Print Current Working Directory
run: pwd
- name: List Contents of Current Working Directory
run: ls -la
- name: List Directories Under Root
run: ls -d /*/
- name: Run Overwatch CLI
run: |
./overwatch-cli \
--auth-token ${{ secrets.SENTRY_AUTH_TOKEN }} \
--organization-slug codecov \
python \
--python-path $(which python3) \
--tool mypy