Repository navigation
52 lines (43 loc) · 1.42 KB
/
Copy pathci.yml
File metadata and controls
52 lines (43 loc) · 1.42 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
name: CI
on:
push:
branches: ["main"]
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
verify:
name: Lint, test, E2E and live S3 (Linux)
runs-on: ubuntu-22.04
timeout-minutes: 45
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Cache Cargo registry and target
uses: Swatinem/rust-cache@v2
with:
workspaces: "control-plane -> target"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install Python test dependencies
run: |
python -m pip install --upgrade pip
python -m pip install "numpy>=1.22" "fsspec>=2023.1.0" pytest boto3 safetensors pyyaml build
sudo apt-get install -y -qq lsof
# Runs every stage except `linux` (the runner already is a clean Linux host) and `k8s`
# (needs minikube). The s3 stage starts a throwaway versitygw container, and the image
# stage builds the release image and tests host access to the containerized daemon.
- name: Verification harness
env:
PYTHON: python
run: scripts/verify_release.sh --stages static,rust,python,e2e,s3,image