From ee749ba6852604696c4e9340b934dcc1ae4a0ee6 Mon Sep 17 00:00:00 2001 From: SKairinos Date: Fri, 15 Dec 2023 15:24:48 +0000 Subject: [PATCH] use actions --- .github/workflows/main.yml | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b3bd4906..2fef0c79 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,22 +14,24 @@ env: PYTHON_VERSION: 3.8 jobs: - # test: - # runs-on: ubuntu-latest - # strategy: - # fail-fast: false - # matrix: - # python-version: [3.8] - # steps: - # - uses: ocadotechnology/codeforlife-workspace/.github/actions/python/test@actions # TODO: use @main - # with: - # python-version: ${{ matrix.python-version }} + test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: [3.8] + steps: + - uses: ocadotechnology/codeforlife-workspace/.github/actions/python/test@main + with: + python-version: ${{ matrix.python-version }} docs: runs-on: ubuntu-latest - # needs: [test] TODO + needs: [test] steps: - - uses: ocadotechnology/codeforlife-workspace/.github/actions/python/docs@actions # TODO: use @main + - uses: ocadotechnology/codeforlife-workspace/.github/actions/python/docs@main + with: + python-version: ${{ env.PYTHON_VERSION }} release: concurrency: release @@ -53,10 +55,7 @@ jobs: python -m pip install --upgrade pip python -m pip install python-semantic-release~=7.33 - - name: ⚙️ Configure Git - run: | - git config --local user.name cfl-bot - git config --local user.email codeforlife-bot@ocado.com + - uses: ocadotechnology/codeforlife-workspace/.github/actions/git/setup-bot@main - name: 🚀 Publish Semantic Release env: