Skip to content

Commit

Permalink
Try handle dependencys in githubactions
Browse files Browse the repository at this point in the history
  • Loading branch information
sirdrakeistda committed Dec 15, 2024
1 parent b3b038b commit 7bf45d1
Showing 1 changed file with 63 additions and 71 deletions.
134 changes: 63 additions & 71 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,76 +9,68 @@ permissions:
contents: read

jobs:
job1:
build:
name: pytest - OS ${{ matrix.os }} - Python ${{ matrix.python-version }} - pandas ${{ matrix.pandas-version }} numpy >2.0
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" , ""]
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" , ""]

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 }}
- name: Test with pytest
run: |
pytest --cov=pandarallel
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3

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"]

job2:
build:
name: pytest - OS ${{ matrix.os }} - Python ${{ matrix.python-version }} - pandas ${{ matrix.pandas-version }} numpy<2.0
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
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

0 comments on commit 7bf45d1

Please sign in to comment.