diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 61c09a4..4408fdc 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -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 \ No newline at end of file + 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