forked from pandas-dev/pandas
-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (71 loc) · 1.93 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
name: Python Dev
on:
push:
branches:
- master
- 1.3.x
pull_request:
branches:
- master
- 1.3.x
paths-ignore:
- "doc/**"
env:
PYTEST_WORKERS: "auto"
PANDAS_CI: 1
PATTERN: "not slow and not network and not clipboard"
COVERAGE: true
jobs:
build:
runs-on: ubuntu-latest
name: actions-310-dev
timeout-minutes: 60
concurrency:
group: ${{ github.ref }}-dev
cancel-in-progress: ${{github.event_name == 'pull_request'}}
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'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -i https://pypi.anaconda.org/scipy-wheels-nightly/simple numpy
pip install git+https://github.com/pytest-dev/pytest.git
pip install git+https://github.com/nedbat/coveragepy.git
pip install cython python-dateutil pytz hypothesis 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
run: |
ci/run_tests.sh
# GH 41935
continue-on-error: true
- 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