forked from pandas-dev/pandas
-
Notifications
You must be signed in to change notification settings - Fork 0
92 lines (77 loc) · 2.21 KB
/
python-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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Python Dev
on:
push:
branches:
- master
- 1.4.x
pull_request:
branches:
- master
- 1.4.x
paths-ignore:
- "doc/**"
env:
PYTEST_WORKERS: "auto"
PANDAS_CI: 1
PATTERN: "not slow and not network and not clipboard"
COVERAGE: true
PYTEST_TARGET: pandas
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
name: actions-310-dev
timeout-minutes: 80
concurrency:
#https://github.community/t/concurrecy-not-work-for-push/183068/7
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-${{ matrix.os }}-${{ matrix.pytest_target }}-dev
cancel-in-progress: true
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python Dev Version
uses: actions/setup-python@v2
with:
python-version: '3.10-dev'
# TODO: GH#44980 https://github.com/pypa/setuptools/issues/2941
- name: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip "setuptools<60.0.0" wheel
pip install -i https://pypi.anaconda.org/scipy-wheels-nightly/simple numpy
pip install git+https://github.com/nedbat/coveragepy.git
pip install cython python-dateutil pytz hypothesis pytest>=6.2.5 pytest-xdist pytest-cov
pip list
- name: Build Pandas
run: |
python setup.py build_ext -q -j2
python -m pip install -e . --no-build-isolation --no-use-pep517
- name: Build Version
run: |
python -c "import pandas; pandas.show_versions();"
- name: Test with pytest
shell: bash
run: |
ci/run_tests.sh
- name: Publish test results
uses: actions/upload-artifact@master
with:
name: Test results
path: test-data.xml
if: failure()
- name: Print skipped tests
run: |
python ci/print_skipped.py
- name: Report Coverage
run: |
coverage report -m
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
flags: unittests
name: codecov-pandas
fail_ci_if_error: true