Fix SeekableFileObject
does not have readline
when loading HTTP file
#1323
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
# This action runs through ImageIO's continous integration pipeline. It | |
# performs the following checks: | |
# | |
# - Linting/Style (Black) | |
# - Invokes the unit tests in no-internet mode on python 3.8 | |
# - runs unit test on cypthon in matrix mode (python 3.X) x (3 major OS) | |
# - runs unit tests on pypy in matrix mode (pypy 3.X) x (3 major OS) | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
concurrency: | |
group: ci-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
docs-GH: | |
name: Build Docs | |
uses: ./.github/workflows/build_docs.yml | |
style: | |
name: "Linting" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- uses: psf/black@24.1.1 | |
with: | |
args: ". --check" | |
- name: Install Dependencies | |
shell: bash | |
run: | | |
pip install .[linting] | |
- name: Flake8 | |
uses: liskin/gh-problem-matcher-wrap@v2 | |
with: | |
linters: flake8 | |
run: flake8 . | |
no-internet: | |
name: "No-Internet Install" | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- name: Install Dependencies | |
run: | | |
# Build to force downloading images (but this step needs numpy and pillow) | |
pip install -q --upgrade numpy pillow | |
python setup.py sdist | |
pip install .[test,all-plugins] | |
# Delete the local copy, so we're actually using the installed version | |
rm -rf ./imageio ./build ./egg-info | |
- name: Unit tests | |
run: | | |
pytest -v -m "not needs_internet" | |
env: | |
IMAGEIO_NO_INTERNET: 1 | |
cpython: | |
name: CPython Test Suite | |
uses: ./.github/workflows/cpython_tests.yml | |
pypy: | |
name: PyPy Test Suite | |
uses: ./.github/workflows/pypy_tests.yml |