Skip to content

Commit 830f5a3

Browse files
committed
Removing python2.7
1 parent 24590fb commit 830f5a3

File tree

1 file changed

+13
-59
lines changed

1 file changed

+13
-59
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,12 @@ jobs:
1010
# https://github.com/actions/python-versions/blob/main/versions-manifest.json
1111
strategy:
1212
matrix:
13-
os: [macos-15-intel, macos-latest, windows-latest]
14-
python-version: [3.6, 3.7, 3.8, 3.9, pypy-3.7]
15-
exclude:
16-
- os: windows-latest
17-
python-version: 3.6
18-
- os: macos-latest
19-
python-version: 3.6
20-
- os: macos-latest
21-
python-version: 3.7
22-
- os: macos-latest
23-
python-version: pypy-3.7
24-
include:
25-
- os: ubuntu-22.04
26-
python-version: 3.7
27-
- os: ubuntu-latest
28-
python-version: 3.9
29-
- os: ubuntu-22.04
30-
python-version: 2.7
13+
os: [macos-15-intel, macos-latest, windows-latest, ubuntu-latest]
14+
python-version: [3.9, 3.10, 3.11, 3.12, pypy-3.8, pypy-3.10]
3115
steps:
32-
- uses: actions/checkout@v2
33-
- if: ${{ matrix.python-version == '2.7' }}
34-
name: Setup Python environment (2.7)
35-
run: |
36-
sudo apt-get install python-is-python2
37-
curl -sSL https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
38-
python get-pip.py
39-
- if: ${{ matrix.python-version != '2.7' }}
40-
name: Setup Python environment
41-
uses: actions/[email protected]
16+
- uses: actions/checkout@v3
17+
- name: Setup Python environment
18+
uses: actions/setup-python@v4
4219
with:
4320
python-version: ${{ matrix.python-version }}
4421
- name: Install Requirements
@@ -55,11 +32,11 @@ jobs:
5532
run: |
5633
pytest -v test/unit/test_dropbox_unit.py
5734
Docs:
58-
runs-on: ubuntu-22.04
35+
runs-on: ubuntu-latest
5936
steps:
60-
- uses: actions/checkout@v2
37+
- uses: actions/checkout@v3
6138
- name: Setup Python environment
62-
uses: actions/setup-python@v3.1.4
39+
uses: actions/setup-python@v4
6340
with:
6441
python-version: '3.9'
6542
- name: Install Requirements
@@ -81,35 +58,12 @@ jobs:
8158
runs-on: ${{ matrix.os }}
8259
strategy:
8360
matrix:
84-
os: [macos-15-intel, macos-latest, windows-latest]
85-
python-version: [3.6, 3.7, 3.8, 3.9, pypy-3.7]
86-
exclude:
87-
- os: windows-latest
88-
python-version: 3.6
89-
- os: macos-latest
90-
python-version: 3.6
91-
- os: macos-latest
92-
python-version: 3.7
93-
- os: macos-latest
94-
python-version: pypy-3.7
95-
include:
96-
- os: ubuntu-22.04
97-
python-version: 3.7
98-
- os: ubuntu-latest
99-
python-version: 3.9
100-
- os: ubuntu-22.04
101-
python-version: 2.7
61+
os: [macos-15-intel, macos-latest, windows-latest, ubuntu-latest]
62+
python-version: [3.9, 3.10, 3.11, 3.12, pypy-3.8, pypy-3.10]
10263
steps:
103-
- uses: actions/[email protected]
104-
- if: ${{ matrix.python-version == '2.7' }}
105-
name: Setup Python environment (2.7)
106-
run: |
107-
sudo apt-get install python-is-python2
108-
curl -sSL https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
109-
python get-pip.py
110-
- if: ${{ matrix.python-version != '2.7' }}
111-
name: Setup Python environment
112-
uses: actions/[email protected]
64+
- uses: actions/checkout@v3
65+
- name: Setup Python environment
66+
uses: actions/setup-python@v4
11367
with:
11468
python-version: ${{ matrix.python-version }}
11569
- name: Install Requirements

0 commit comments

Comments
 (0)