Try to support 3.7 #9
Workflow file for this run
This file contains hidden or 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
| name: Deprecated Python CI | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 20 * * 3' # Every Wednesday at 20:00 UTC | |
| push: | |
| branches: | |
| - issue-2681-py38 | |
| jobs: | |
| tests: | |
| name: Test on Python ${{ matrix.python-version }} (deprecated) | |
| continue-on-error: true | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - python-version: '3.7' | |
| os: ubuntu-22.04 | |
| - python-version: '3.8' | |
| os: ubuntu-latest | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Upgrade pip | |
| run: python -m pip install --upgrade pip | |
| - name: Relax requires-python lower bound for installation | |
| run: | | |
| sed -i.bak -E "s/requires-python = '>=3\.[0-9]+/requires-python = '>=${{ matrix.python-version }}/" pyproject.toml | |
| grep -n "requires-python" pyproject.toml | |
| - name: Install package and test dependencies | |
| run: python -m pip install --no-deps invoke tomli packaging pytest pytest-cov pytest-rerunfailures pluggy .[test] | |
| - name: Try to install any 3.7-compatible dependency versions | |
| run: | | |
| # Let pip pick the newest release that still supports th epython version | |
| python -m pip install \ | |
| numpy pandas pyarrow graphviz tqdm platformdirs pyyaml boto3 botocore cloudpickle \ | |
| rdt sdmetrics copulas ctgan deepecho | |
| - name: Run unit tests | |
| run: invoke unit | |
| - name: Run integration tests | |
| run: invoke integration |