-
-
Notifications
You must be signed in to change notification settings - Fork 4
99 lines (78 loc) · 2.24 KB
/
test.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
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
name: Test
on:
push:
jobs:
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
- name: run tests
run: |
cargo test --package exon --package exon-bam --test sqllogictests --all-features
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and smoke test the image
run: |
docker build --build-arg CARGO_BUILD_PROFILE=debug -t exon:latest -f Dockerfile .
docker run -t exon:latest exon-cli -c "SELECT 1;"
toml-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
- name: Install toml-lint
run: |
cargo install taplo-cli
- name: Run taplo format
run: |
taplo format --check
cargo-machete:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
- name: Install cargo-machete
run: |
cargo install cargo-machete
- name: Run cargo-machete
run: |
cargo machete
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install python dependencies
run: |
pip install awscli
pip install awscli-local
pip install urllib3==2.2.1
pip install pandas
pip install deltalake
- name: Run tests and sqllogictests
env:
AWS_DEFAULT_REGION: us-west-2
AWS_ACCESS_KEY_ID: test
AWS_SECRET_ACCESS_KEY: test
AWS_ENDPOINT_URL: http://localhost:4566
AWS_ENDPOINT: http://localhost:4566
AWS_ALLOW_HTTP: true
run: |
pwd
ls
bash ./bin/test.sh