From f02f49c9adbc8c0b0dabfb1279e785706a39a03e Mon Sep 17 00:00:00 2001 From: Vinit Kumar Date: Tue, 5 Apr 2022 00:19:43 +0530 Subject: [PATCH] feat: upgrade github actions and cache pip Github actions have a new release and pip cache was not enabled. Both of these will make the CI run faster. Authored-by: Vinit Kumar Signed-off-by: Vinit Kumar --- .github/workflows/test.yml | 42 +++++++++++++++++++++++--------------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2247d5ca11..bbb032129c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,8 +1,5 @@ name: Wagtail CI -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true on: push: @@ -12,6 +9,11 @@ on: paths-ignore: - 'docs/**' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + # Our test suite should cover: # - all supported databases against current Python and Django # - at least one test run for each older supported version of Python and Django @@ -43,9 +45,9 @@ jobs: django: 'Django>=4.0,<4.1' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: ${{ matrix.python }} - name: Install dependencies @@ -92,11 +94,12 @@ jobs: options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: ${{ matrix.python }} + cache: 'pip' - name: Install dependencies run: | python -m pip install --upgrade pip @@ -139,11 +142,12 @@ jobs: options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: ${{ matrix.python }} + cache: 'pip' - name: Install dependencies run: | python -m pip install --upgrade pip @@ -182,11 +186,12 @@ jobs: host node port: 9300 node port: 9300 discovery type: 'single-node' - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: ${{ matrix.python }} + cache: 'pip' - name: Install dependencies run: | python -m pip install --upgrade pip @@ -223,11 +228,12 @@ jobs: host node port: 9300 node port: 9300 discovery type: 'single-node' - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: ${{ matrix.python }} + cache: 'pip' - name: Install dependencies run: | python -m pip install --upgrade pip @@ -269,11 +275,12 @@ jobs: - uses: elastic/elastic-github-actions/elasticsearch@master with: stack-version: 6.8.13 - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: ${{ matrix.python }} + cache: 'pip' - name: Install dependencies run: | python -m pip install --upgrade pip @@ -319,11 +326,12 @@ jobs: - uses: elastic/elastic-github-actions/elasticsearch@master with: stack-version: 7.6.1 - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: ${{ matrix.python }} + cache: 'pip' - name: Install dependencies run: | python -m pip install --upgrade pip