-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (40 loc) · 1.1 KB
/
ci.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
---
name: Continous integration of Rockset SQLAlchemy
on:
pull_request:
types: [opened, synchronize, edited, ready_for_review]
jobs:
ci:
name: build and archive
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
python-version: '3.10'
- name: Install pypa/build
run: >-
python3 -m
pip install
build pytest sqlalchemy rockset
--user
- name: Test
run: if [ $(ls -1 test/*.py |grep -v __init__.py |wc -l) -gt 0 ]; then pytest test; else true; fi
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Persist build artifacts
uses: actions/upload-artifact@v4
with:
name: sqlalchemy_draft_wheel
path: |
dist/*.whl
retention-days: 2
linter:
name: runner / black formatter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
with:
options: "--check --verbose"
src: "./src"