fix: eliminate distutils #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# This workflow will install Python dependencies, run tests and lint with | |
# a variety of Python versions For more information see: | |
# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Tests | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: [develop] | |
pull_request: | |
branches: [develop] | |
workflow_dispatch: | |
workflow_call: | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-versions: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] | |
pandas-versions: [1.5.3, 2.0.0, 2.2.0, 2.2.3] | |
toolchain: | |
- {compiler: gcc, version: 13} | |
exclude: | |
- python-versions: '3.13' | |
pandas-versions: 1.5.3 | |
- python-versions: '3.13' | |
pandas-versions: 2.0.0 | |
- python-versions: '3.13' | |
pandas-versions: 2.2.0 | |
- python-versions: '3.8' | |
pandas-versions: 2.2.0 | |
- python-versions: '3.8' | |
pandas-versions: 2.2.3 | |
- os: windows-latest | |
python-versions: '3.8' | |
- os: windows-latest | |
python-versions: '3.9' | |
pandas-versions: 2.2.0 | |
- os: windows-latest | |
python-versions: '3.10' | |
pandas-versions: 2.2.0 | |
- os: windows-latest | |
python-versions: '3.11' | |
pandas-versions: 2.2.0 | |
- os: windows-latest | |
python-versions: '3.12' | |
pandas-versions: 2.2.0 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Set up Python ${{ matrix.python-versions }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-versions }} | |
- name: > | |
Install dependencies with pandas | |
version ${{ matrix.pandas-versions }} | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install pytest pytest-cov | |
python -m pip install \ | |
pandas==${{ matrix.pandas-versions }} \ | |
'numpy<2' . | |
- name: Test with pytest | |
run: | | |
python -m pytest --cov | |
- name: Upload coverage data to coveralls.io | |
uses: coverallsapp/github-action@v2 | |
with: | |
parallel: true | |
finish: | |
needs: test | |
if: ${{ always() }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Coveralls Finished | |
uses: coverallsapp/github-action@v2 | |
with: | |
parallel-finished: true |