diff --git a/.github/workflows/diff.yml b/.github/workflows/diff.yml index 2b21a8b01..d740530a9 100644 --- a/.github/workflows/diff.yml +++ b/.github/workflows/diff.yml @@ -26,7 +26,7 @@ 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: | @@ -34,5 +34,4 @@ jobs: ./generate_test.py TestGenerateAll env: ENABLE_GENERATE_TEST: 1 - VERSION_CACHE_PATH: version.json - \ No newline at end of file + VERSIONS_CACHE_PATH: versions.json diff --git a/generate_test.py b/generate_test.py index 7f3ee3e8e..7d043ef96 100755 --- a/generate_test.py +++ b/generate_test.py @@ -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: