Skip to content

Commit ba62d80

Browse files
authored
Merge pull request #112 from apriha/feature/support-modern-python-versions
Support modern Python versions
2 parents 3d083e4 + a3564a7 commit ba62d80

File tree

5 files changed

+755
-717
lines changed

5 files changed

+755
-717
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ jobs:
1919
lint:
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v2
23-
- uses: actions/setup-python@v2
22+
- uses: actions/checkout@v4
23+
- uses: actions/setup-python@v5
24+
with:
25+
python-version: '3.12'
2426
- name: Install Black
2527
run: |
2628
pip install black
@@ -31,8 +33,10 @@ jobs:
3133
build-docs:
3234
runs-on: ubuntu-latest
3335
steps:
34-
- uses: actions/checkout@v2
35-
- uses: actions/setup-python@v2
36+
- uses: actions/checkout@v4
37+
- uses: actions/setup-python@v5
38+
with:
39+
python-version: '3.12'
3640
- name: Install Sphinx
3741
run: |
3842
pip install -r docs/requirements.txt
@@ -46,43 +50,32 @@ jobs:
4650
runs-on: ${{ matrix.os }}
4751
strategy:
4852
matrix:
53+
os: [ubuntu-latest]
54+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
4955
include:
50-
- os: ubuntu-latest
51-
python-version: '3.7'
52-
job_id: 0
53-
- os: ubuntu-latest
54-
python-version: '3.8'
55-
job_id: 1
56-
- os: ubuntu-latest
57-
python-version: '3.9'
58-
job_id: 2
59-
- os: ubuntu-latest
60-
python-version: '3.10'
61-
job_id: 3
6256
- os: macos-latest
63-
python-version: '3.10'
64-
job_id: 4
57+
python-version: '3.12'
6558
- os: windows-latest
66-
python-version: '3.10'
67-
job_id: 5
59+
python-version: '3.12'
60+
61+
env:
62+
JOB_ID: ${{ strategy.job-index }}
63+
NUM_JOBS: ${{ strategy.job-total }}
6864

6965
steps:
70-
- uses: actions/checkout@v2
66+
- uses: actions/checkout@v4
7167
with:
7268
fetch-depth: 0
7369
persist-credentials: false
7470
- name: Setup Python ${{ matrix.python-version }}
75-
uses: actions/setup-python@v2
71+
uses: actions/setup-python@v5
7672
with:
7773
python-version: ${{ matrix.python-version }}
7874
- name: Determine if downloads are enabled for this job
7975
# for testing, limit downloads from the resource servers to only the selected job for
8076
# PRs and the master branch; note that the master branch is tested weekly via `cron`,
8177
# so this ensures all Python versions will be periodically integration tested with the
8278
# resource servers
83-
env:
84-
NUM_JOBS: 6
85-
JOB_ID: ${{ matrix.job_id }}
8679
if: ${{ github.event_name == 'pull_request' || github.ref == 'refs/heads/master' }}
8780
shell: bash
8881
run: |
@@ -110,6 +103,7 @@ jobs:
110103
working-directory: C:\a\lineage\lineage
111104
run: |
112105
pytest --cov=lineage tests
113-
- name: Upload coverage to Codecov (Ubuntu & macOS)
114-
if: ${{ matrix.os != 'windows-latest' }}
115-
uses: codecov/codecov-action@v3
106+
- name: Upload coverage to Codecov
107+
uses: codecov/codecov-action@v4.1.0
108+
with:
109+
token: ${{ secrets.CODECOV_TOKEN }}

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ black = "*"
1414
lineage = {editable = true,path = "."}
1515

1616
[requires]
17-
python_version = "3.7"
17+
python_version = "3.12"

0 commit comments

Comments
 (0)