Skip to content

Commit c41f1c2

Browse files
committed
add a ci workflow to debug
1 parent a7fa98f commit c41f1c2

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/ci_duplicate.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI (duplicate)
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: read # to fetch code
10+
actions: write # to cancel previous workflows
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
lint_and_typecheck:
18+
runs-on: linux-x86-n2-16
19+
container:
20+
image: index.docker.io/library/ubuntu@sha256:6d8d9799fe6ab3221965efac00b4c34a2bcc102c086a58dff9e19a08b913c7ef # ratchet:ubuntu:20.04
21+
timeout-minutes: 5
22+
steps:
23+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
24+
- name: Install dependencies for setting up Python
25+
env:
26+
DEBIAN_FRONTEND: noninteractive
27+
run: |
28+
apt update && apt install libssl-dev libsqlite3-dev git -y
29+
- name: Set up Python 3.11
30+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
31+
with:
32+
python-version: 3.11
33+
- run: python -m pip install pre-commit
34+
# Halt for testing
35+
- name: Wait For Connection
36+
uses: google-ml-infra/actions/ci_connection@main
37+
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
38+
with:
39+
path: ~/.cache/pre-commit
40+
key: pre-commit-${{ env.pythonLocation }}-${{ hashFiles('.pre-commit-config.yaml', 'setup.py') }}
41+
- run: pre-commit run --show-diff-on-failure --color=always --all-files

0 commit comments

Comments
 (0)