From a3a64f7fc28885490d8ac58c76530ca236b72c8c Mon Sep 17 00:00:00 2001 From: Hans5958 Date: Wed, 17 May 2023 22:45:12 +0700 Subject: [PATCH] Rename workflow name, add caching --- .github/workflows/validate-json.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/validate-json.yml b/.github/workflows/validate-json.yml index d5a8ef20..36674e66 100644 --- a/.github/workflows/validate-json.yml +++ b/.github/workflows/validate-json.yml @@ -1,4 +1,4 @@ -name: Validate JSON +name: Validate Atlas data on: push: paths: @@ -8,12 +8,19 @@ on: - web/atlas.json jobs: validate: - name: Validate JSON + name: Validate runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v3 - - name: Validate JSON + - name: Cache dependencies + uses: actions/cache@v3 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + - name: Validate run: | pip3 install -r tools/ci/requirements.txt python3 tools/ci/validate_json.py web/atlas.json tools/atlas.schema.json \ No newline at end of file