-
Notifications
You must be signed in to change notification settings - Fork 5
78 lines (65 loc) · 2.2 KB
/
dev.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
name: development workflow
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events on all branches
# push:
# paths-ignore:
# - 'LICENSE'
# - 'README.md'
# - '.gitignore'
# - '.github/workflows/stagging.yml'
# - '.github/workflows/release.yml'
# - '.github/ISSUE_TEMPLATE.md'
pull_request:
paths-ignore:
- 'LICENSE'
- 'README.md'
- '.gitignore'
- '.github/workflows/stagging.yml'
- '.github/workflows/release.yml'
- '.github/ISSUE_TEMPLATE.md'
# Allows one to run this workflow manually from the Actions tab
workflow_dispatch:
# ensure only a single workflow is run at a time, cancels previous workflows
concurrency:
group: dev_env
cancel-in-progress: true
# define fake dremio account username and password
env:
DREMIO_FLIGHT_SERVER_USERNAME: fake_username
DREMIO_FLIGHT_SERVER_PASSWORD: fake_password
PYTHONWARNINGS: ignore
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
client-build:
# The type of runner that the job will run on
strategy:
matrix:
python-versions: ["3.10","3.11"]
poetry-version: [1.5.1]
os: [ubuntu-20.04, macos-11, windows-2019]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-versions }}
- name: Install poetry ${{ matrix.poetry-version }}
run: |
python -m ensurepip
python -m pip install --upgrade pip
python -m pip install poetry==${{ matrix.poetry-version }}
- name: Install dependencies
run: poetry install --extras 'test doc'
- name: code and doc files formatting check
run: make format
- name: code linting
run: make lint
- name: Build installable wheel
run: |
poetry build -f wheel
- name: Check we can import and use client
run: poetry run python -c "from dremioarrow import DremioArrowClient, __version__; flight_=DremioArrowClient(); print(__version__)"
- name: confirm docs build
run: |
poetry run mkdocs build