Skip to content

Drop support for <3.8 #109

Drop support for <3.8

Drop support for <3.8 #109

Workflow file for this run

name: Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
tests:
name: "Test: py${{ matrix.python-version }}, ${{ matrix.os }}"
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [Ubuntu, macOS, Windows]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
run: pip install tox
- name: Run tests
run: tox -e py
- name: Run off-tox tests
# https://github.com/scrapinghub/shub/issues/441
run: |
python -m venv venv
. venv/bin/activate
pip install .
python -c "from shub.image.utils import get_docker_client; get_docker_client(validate=False)"
- name: Upload coverage report
if: matrix.os == 'Ubuntu'
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov