Skip to content

Commit

Permalink
Merge pull request #112 from apriha/feature/support-modern-python-ver…
Browse files Browse the repository at this point in the history
…sions

Support modern Python versions
  • Loading branch information
apriha authored Mar 20, 2024
2 parents 3d083e4 + a3564a7 commit ba62d80
Show file tree
Hide file tree
Showing 5 changed files with 755 additions and 717 deletions.
50 changes: 22 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Black
run: |
pip install black
Expand All @@ -31,8 +33,10 @@ jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Sphinx
run: |
pip install -r docs/requirements.txt
Expand All @@ -46,43 +50,32 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
include:
- os: ubuntu-latest
python-version: '3.7'
job_id: 0
- os: ubuntu-latest
python-version: '3.8'
job_id: 1
- os: ubuntu-latest
python-version: '3.9'
job_id: 2
- os: ubuntu-latest
python-version: '3.10'
job_id: 3
- os: macos-latest
python-version: '3.10'
job_id: 4
python-version: '3.12'
- os: windows-latest
python-version: '3.10'
job_id: 5
python-version: '3.12'

env:
JOB_ID: ${{ strategy.job-index }}
NUM_JOBS: ${{ strategy.job-total }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Determine if downloads are enabled for this job
# for testing, limit downloads from the resource servers to only the selected job for
# PRs and the master branch; note that the master branch is tested weekly via `cron`,
# so this ensures all Python versions will be periodically integration tested with the
# resource servers
env:
NUM_JOBS: 6
JOB_ID: ${{ matrix.job_id }}
if: ${{ github.event_name == 'pull_request' || github.ref == 'refs/heads/master' }}
shell: bash
run: |
Expand Down Expand Up @@ -110,6 +103,7 @@ jobs:
working-directory: C:\a\lineage\lineage
run: |
pytest --cov=lineage tests
- name: Upload coverage to Codecov (Ubuntu & macOS)
if: ${{ matrix.os != 'windows-latest' }}
uses: codecov/codecov-action@v3
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ black = "*"
lineage = {editable = true,path = "."}

[requires]
python_version = "3.7"
python_version = "3.12"
Loading

0 comments on commit ba62d80

Please sign in to comment.