From 563093618831c8a27e3cc6f15c9364e8766ef8f9 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Wed, 31 Aug 2022 15:19:00 +0300 Subject: [PATCH] Refresh CI --- .github/workflows/build.yml | 37 +++++++++++-------------------------- 1 file changed, 11 insertions(+), 26 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0ebf9a6..3038e06 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,37 +14,21 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2.3.1 - - name: Set up Python 3.9 - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 with: - python-version: 3.9 - - name: Cache pip - uses: actions/cache@v2 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - ${{ runner.os }}- + python-version: "3.10" + cache: pip - name: Install dependencies - run: | - python -m pip install --upgrade pip wheel - python -m pip install -r requirements.txt + run: python -m pip install -r requirements.txt - name: Build run: make -j3 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: - node-version: '12' - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v2 - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + node-version: '16' + cache: yarn + cache-dependency-path: analysaattori/yarn.lock - run: yarn working-directory: analysaattori - run: yarn build @@ -58,3 +42,4 @@ jobs: with: branch: gh-pages folder: out + if: ${{ github.event_name == 'push' }}