Skip to content

Commit 9aafc97

Browse files
committed
Remove python 3.7 in workflow
1 parent fc96653 commit 9aafc97

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

.github/workflows/python-package.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
os: [ubuntu-latest, macos-latest, windows-latest]
20-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
20+
python-version: ["3.8", "3.9", "3.10", "3.11"]
2121

2222
steps:
2323
- uses: actions/checkout@v3
@@ -28,21 +28,8 @@ jobs:
2828
- name: Install dependencies
2929
run: |
3030
python -m pip install --upgrade pip
31-
32-
python -m pip install pytest
33-
pip install -r requirements.txt
34-
35-
if [ "$RUNNER_OS" == "Windows" ]; then
36-
set PY_VERSION=%PYTHON_VERSION:~-3%
37-
else
38-
PY_VERSION=$(python -c "import platform; print(platform.python_version()[:3])")
39-
fi
40-
41-
if [[ "$PY_VERSION" == "3.7" ]]; then
42-
pip install "flake8>=5,<6"
43-
else
44-
pip install flake8
45-
fi
31+
python -m pip install flake8 pytest
32+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
4633
- name: Install the package locally
4734
run: pip install -e .
4835
- name: Lint with flake8

0 commit comments

Comments
 (0)