diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a44aaf9..9dea333 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,7 +23,9 @@ jobs: python -m pip install pytest if [ -f requirements.txt ]; then pip install -r requirements.txt; fi sudo apt-get update - sudo apt-get install minify + sudo apt-get install -y wget minify + wget "https://dl.google.com/closure-compiler/compiler-20150315.zip" + unzip compiler-20150315.zip compiler.jar - name: Test with pytest run: | pytest diff --git a/assetman/tests/test_compiler.py b/assetman/tests/test_compiler.py index a11db01..98a0e49 100644 --- a/assetman/tests/test_compiler.py +++ b/assetman/tests/test_compiler.py @@ -44,7 +44,8 @@ def run_compiler(test_needs_compile=True, **opts): to our CDN. """ minify_compressor_path = "/usr/bin/minify" - manifest = assetman.compile.run(get_settings(test_needs_compile=test_needs_compile, minify_compressor_path=minify_compressor_path, **opts)) + closure_compiler = "closure.jar" + manifest = assetman.compile.run(get_settings(test_needs_compile=test_needs_compile, minify_compressor_path=minify_compressor_path, closure_compiler=closure_compiler, **opts)) logging.debug(manifest) return manifest