Skip to content

Commit

Permalink
CI: Support Python 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Oct 14, 2023
1 parent ccf646e commit 9579cad
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
os: ["ubuntu-20.04"]
python-version: ["3.6", "3.12"]

env:
Expand All @@ -43,19 +43,30 @@ jobs:
cache: 'pip'
cache-dependency-path: 'pyproject.toml'

- name: Set up project
- name: Set up project (Python 3.6)
if: matrix.python-version == '3.6' || matrix.python-version == 'pypy-3.6'
run: |
# Install requirements for testing.
pip install --requirement requirements-test.txt
- name: Set up project (Python 3.7+)
if: matrix.python-version != '3.6' && matrix.python-version != 'pypy-3.6'
run: |
# `setuptools 0.64.0` adds support for editable install hooks (PEP 660).
# https://github.com/pypa/setuptools/blob/main/CHANGES.rst#v6400
pip install "setuptools>=64" --upgrade
# Install package in editable mode.
pip install --use-pep517 --prefer-binary --editable=.[develop,test]
- name: Run linter and software tests
- name: Check code style
if: matrix.python-version != '3.6' && matrix.python-version != 'pypy-3.6'
run: |
poe lint
- name: Run software tests
run: |
poe check
poe test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
Expand Down
7 changes: 7 additions & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Needed for testing on Python 3.6

# tests
poethepoet<1
pretend<2
pytest<8
pytest-cov<5

0 comments on commit 9579cad

Please sign in to comment.