-
Notifications
You must be signed in to change notification settings - Fork 251
64 lines (53 loc) · 1.93 KB
/
file_verification.yml
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
name: Lance File Write Read Round Trip Verification
on:
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Build Requirements
run: |
sudo apt update
sudo apt install -y protobuf-compiler
- name: Validate AWS Credentials
run: |
if [ -z "${{ secrets.LANCEDB_S3_READER_ACCESS_KEY }}" ] || [ -z "${{ secrets.LANCEDB_S3_READER_SECRET }}" ]; then
echo "ERROR: AWS credentials are not properly set"
exit 1
fi
echo "AWS credentials validation successful"
- name: Set up AWS CLI
uses: aws-actions/configure-aws-credentials@v3
with:
aws-access-key-id: ${{ secrets.LANCEDB_S3_READER_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.LANCEDB_S3_READER_SECRET }}
aws-region: us-east-2
- name: Prepare Test Environment
run: |
BUCKET_NAME="lance-ci-bucket"
mkdir -p .github/workflows/file_veification/test_files
aws s3 ls s3://$BUCKET_NAME
aws s3 cp s3://$BUCKET_NAME .github/workflows/file_verification/test_files --recursive
ls -l .github/workflows/file_verification/test_files
- name: Build Lance
working-directory: ./python
run: |
python -m venv venv
source venv/bin/activate
pip install pyarrow maturin
maturin develop --release
- name: Test Lance File Write Read Round Trip
run: |
source python/venv/bin/activate
cd .github/workflows/file_verification
python test_write_read.py
- name: Cleanup
run: |
rm -rf .github/workflows/file_verification/test_files
echo "Cleanup completed: Test files removed"