deeplook / svglib

Read SVG files and convert them to other formats.
GNU Lesser General Public License v3.0
322 stars 79 forks source link

Cache tests/samples/wikipedia/{flags,symbols} for CI #276

Closed eumiro closed 3 years ago

eumiro commented 3 years ago

Does this even work?

Closes #273

eumiro commented 3 years ago

It looks like it works:

Run actions/cache@v2
  with:
    path: tests/samples/wikipedia/flags
    key: wikipedia-flags-3.7-ubuntu-latest
  env:
    cache-name: cache-wikipedia-flags
Received 2501875 of 2501875 (100.0%), 25.7 MBs/sec
Cache Size: ~2 MB (2501875 B)
/bin/tar --use-compress-program zstd -d -xf /home/runner/work/_temp/dc749133-b5b9-4158-8b64-d934215ddbf0/cache.tzst -P -C /home/runner/work/svglib/svglib
Cache restored from key: wikipedia-flags-3.7-ubuntu-latest
claudep commented 3 years ago

That's great. Do you think we should also cache the W3C_SVG_12_TinyTestSuite.tar.gz file?

eumiro commented 3 years ago

Yes, I've added the directory in a new commit (you can squash them in the merge process). If it works, the next step could be to refactor and put the whole cacheable stuff into a single directory with subdirectories to make the ci.yml file smaller.

eumiro commented 3 years ago

And did you see that the three pypy3 tests “do run but do not sow”? They do not throw an error, but nothing happens in the test step.

deeplook commented 3 years ago

Let's check for pypy3 separately. Else nice, although I guess we save more bandwidtb than time here.

claudep commented 3 years ago

:+1: