Skip to content

Test CI scripts and workflows #12

Test CI scripts and workflows

Test CI scripts and workflows #12

Workflow file for this run

name: CI (duplicate)
on:
pull_request:
branches:
- main
permissions:
contents: read # to fetch code
actions: write # to cancel previous workflows
jobs:
lint_and_typecheck:
runs-on: linux-x86-n2-16
container:
image: index.docker.io/library/ubuntu@sha256:6d8d9799fe6ab3221965efac00b4c34a2bcc102c086a58dff9e19a08b913c7ef # ratchet:ubuntu:20.04
timeout-minutes: 5
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install dependencies for setting up Python
env:
DEBIAN_FRONTEND: noninteractive
run: |
apt update && apt install libssl-dev libsqlite3-dev git -y
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: python -m pip install pre-commit
- name: Add to PATH
run: export PATH=$PATH:/__w/_tool/Python/3.11.10/x64/bin
- name: echo PATH
run: echo $PATH
# Halt for testing
- name: Wait For Connection
env:
PATH: '$PATH:/__w/_tool/Python/3.11.10/x64/bin'
uses: google-ml-infra/actions/ci_connection@main
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ env.pythonLocation }}-${{ hashFiles('.pre-commit-config.yaml', 'setup.py') }}
- run: pre-commit run --show-diff-on-failure --color=always --all-files