Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
yosupo06 committed Sep 24, 2023
1 parent 132ae70 commit 878a931
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@ jobs:
uses: actions/cache/restore@v3
with:
path: versions.json
key: ${{ runner.os }}-cache-
key: ${{ runner.os }}-versions-cache-

- name: Run generate.py on gcc
run: |
ulimit -s unlimited
./generate_test.py TestGenerateAll
env:
ENABLE_GENERATE_TEST: 1
VERSION_CACHE_PATH: version.json

VERSIONS_CACHE_PATH: versions.json
3 changes: 2 additions & 1 deletion generate_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ class TestGenerateAll(unittest.TestCase):
def test_generate_all(self):
tomls = list(filter(lambda p: not p.match('test/**/info.toml'), Path('.').glob('**/info.toml')))
tomls = sorted(tomls, key=lambda x: x.parent.name)
tomls = [Path('sample/aplusb/info.toml'), Path('sample/many_aplusb/info.toml')]

cache_path = Path(getenv('CACHE_PATH'))
cache_path = Path(getenv('VERSIONS_CACHE_PATH'))
versions = json.load(open(cache_path, 'r')) if cache_path.exists() else dict()

for toml in tomls:
Expand Down

0 comments on commit 878a931

Please sign in to comment.