-
Notifications
You must be signed in to change notification settings - Fork 11
61 lines (52 loc) · 1.43 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
name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 2
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
pandas-version: ["1.5.3", "2.2.2"]
exclude:
- python-version: "3.8"
pandas-version: "2.2.2"
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[spark]
pip check
pip install nox
- name: Run unit tests
run: |
nox --session "tests(python='${{ matrix.python-version }}', pandas='${{ matrix.pandas-version }}')"
env:
TD_API_KEY: 1/XXX
TD_API_SERVER: https://api.treasure-data.com/
dist-dry-run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and check dist for PiPY (a.k.a dry run)
run: |
python setup.py sdist bdist_wheel
twine check dist/*