Skip to content

Commit 3eb9ca4

Browse files
committed
Modify GH action
Similar to the Docker file
1 parent d96e396 commit 3eb9ca4

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

.github/workflows/tests.yml

+20-14
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,34 @@ name: GitHub Tests
22

33
on:
44
push:
5-
branches: [master]
65
pull_request:
76
workflow_dispatch:
87

98
jobs:
109
build:
1110
runs-on: ubuntu-20.04
12-
strategy:
13-
matrix:
14-
python-version: ['2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
15-
1611
steps:
1712
- uses: actions/checkout@v4
18-
- name: Set up Python ${{ matrix.python-version }}
19-
uses: LizardByte/setup-python-action@master
20-
with:
21-
python-version: ${{ matrix.python-version }}
22-
env:
23-
PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"
24-
- name: Install dependencies
13+
- name: Set up Python
2514
run: |
26-
python -m pip install --upgrade pip wheel
27-
pip install tox tox-gh-actions
15+
sudo apt-get update
16+
sudo apt install software-properties-common -y
17+
sudo add-apt-repository ppa:deadsnakes/ppa
18+
sudo apt-get update
19+
sudo apt-get install -y --no-install-recommends git curl
20+
sudo apt-get install -y --no-install-recommends \
21+
python2.7 \
22+
python3.4 \
23+
python3.5 \
24+
python3.6 python3.6-distutils \
25+
python3.7 python3.7-distutils \
26+
python3.8 python3.8-distutils \
27+
python3.9 \
28+
python3.10 \
29+
python3.11 \
30+
python3.12 \
31+
python3.13
32+
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.12
33+
pip3 install --upgrade pip setuptools wheel tox tox-gh-actions
2834
- name: Test with tox
2935
run: tox

0 commit comments

Comments
 (0)