-
Notifications
You must be signed in to change notification settings - Fork 215
76 lines (69 loc) · 2.51 KB
/
run_tests.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
name: PyTest
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
build:
name: pytest - OS ${{ matrix.os }} - Python ${{ matrix.python-version }} - pandas ${{ matrix.pandas-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-20.04", "macos-latest", "windows-latest"]
# Remove Python 3.7.9 on 27 Jun 2023: https://endoflife.date/python
python-version: ["3.9.20", "3.10.15","3.11.11","3.12.8","3.13.1"]
pandas-version: ["2.0.3","2.1.4" , ""]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Replace with specific pandas version (${{ matrix.pandas-version }})
if: ${{ matrix.pandas-version }}
run: pip install pandas==${{ matrix.pandas-version }}
- name: Test with pytest
run: |
pytest --cov=pandarallel
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
build:
name: pytest - OS ${{ matrix.os }} - Python ${{ matrix.python-version }} - pandas ${{ matrix.pandas-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-20.04", "macos-latest", "windows-latest"]
# Remove Python 3.7.9 on 27 Jun 2023: https://endoflife.date/python
python-version: ["3.9.20", "3.10.15","3.11.11","3.12.8","3.13.1"]
pandas-version: ["1.2.5", "1.3.5", "1.4.3"]
exclude:
# Pandas 1.2.5 has to be fully rebuilt with Python >= 3.10.5 (taking > 10 min)
- python-version: "3.10.8"
pandas-version: "1.2.5"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Replace with specific pandas version (${{ matrix.pandas-version }})
if: ${{ matrix.pandas-version }}
run: pip install pandas==${{ matrix.pandas-version }} numpy<2.0
- name: Test with pytest
run: |
pytest --cov=pandarallel
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3