Remove test images as a submodule

They were causing problems for users without LFS installed, and unnecessary except for tests
hotfix/mipmap-alpha-fix
Andrew Cassidy 3 years ago
parent f353bf6e92
commit faa7e4df08

@ -19,7 +19,6 @@ jobs:
# Whether to checkout submodules: `true` to checkout submodules or `recursive` to
# recursively checkout submodules.
submodules: 'true'
lfs: 'true'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
@ -42,6 +41,9 @@ jobs:
python -m pip install --upgrade pip
python -m pip install flake8 ninja setuptools-scm Pillow click nose parameterized
- name: Install test images
run: git clone https://git.pileof.rocks/drewcassidy/quicktex-test-images.git tests/images
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
@ -58,7 +60,7 @@ jobs:
build:
needs: test
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
runs-on: ${{ matrix.os }}
env:
MACOSX_DEPLOYMENT_TARGET: 10.15

3
.gitignore vendored

@ -12,6 +12,9 @@ docs/_build/
#mypy
out
# Test images
tests/images/
# IDEs
**/.idea

4
.gitmodules vendored

@ -2,7 +2,3 @@
path = extern/pybind11
url = https://github.com/pybind/pybind11.git
branch = stable
[submodule "tests/images"]
path = tests/images
url = https://git.pileof.rocks/drewcassidy/python-rgbcx-images.git
commit = 0ade526dd1070e6f5b43e0bd58b26828abff86b7

@ -0,0 +1,9 @@
import os.path
# Some checks to run before tests can begin
images_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'images')
assert os.path.isdir(images_path), 'test images repo not present'
assert os.path.isfile(os.path.join(images_path, '__init__.py')), 'images __init__.py not present, is the test image repo present?'
bp_size = os.path.getsize(os.path.join(images_path, 'Boilerplate.png'))
assert bp_size == 955989, 'Boilerplate.png is the wrong size, is the test image repo checked out with LFS enabled?'

@ -1 +0,0 @@
Subproject commit bd0689ec4b841440713c3d8ff94fde71ddd4417f

@ -13,10 +13,10 @@ def test_images():
images_path = os.path.join(tests_path, 'images')
assert os.path.isdir(images_path), 'images directory/submodule not present'
assert os.path.isfile(os.path.join(images_path, '__init__.py')), 'images __init__.py not present, is the submodule checked out?'
assert os.path.isdir(images_path), 'test images repo not present. run "git clone https://git.pileof.rocks/drewcassidy/quicktex-test-images.git tests/images" to download them'
assert os.path.isfile(os.path.join(images_path, '__init__.py')), 'images __init__.py not present, is the test image repo present?'
bp_size = os.path.getsize(os.path.join(images_path, 'Boilerplate.png'))
assert bp_size == 955989, 'Boilerplate.png is the wrong size, is the submodule checked out with LFS enabled?'
assert bp_size == 955989, 'Boilerplate.png is the wrong size, is the test image repo checked out with LFS enabled?'
def test_version():

Loading…
Cancel
Save