From 0bf84a058b985050b521cd8a25b3332c03f4e83e Mon Sep 17 00:00:00 2001 From: SKairinos Date: Thu, 14 Dec 2023 19:05:56 +0000 Subject: [PATCH] call action --- .github/workflows/main.yml | 111 ++++++++++++++++++++----------------- 1 file changed, 61 insertions(+), 50 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 721b09d2..e5f317dd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,65 +14,76 @@ env: PYTHON_VERSION: 3.8 jobs: - test: + docs: runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - python-version: [3.8] steps: - - name: ๐Ÿ›ซ Checkout - uses: actions/checkout@v3 - - - name: ๐Ÿ Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - id: foo + uses: actions/codeforlife-action-docs@v0.1 with: - python-version: ${{ matrix.python-version }} + who-to-greet: 'Mona the Octocat' + - run: echo random-number ${{ steps.foo.outputs.random-number }} + shell: bash - - name: ๐Ÿ›  Install Dependencies - run: | - python -m pip install --upgrade pip - python -m pip install pipenv - pipenv install --dev + # test: + # runs-on: ubuntu-latest + # strategy: + # fail-fast: false + # matrix: + # python-version: [3.8] + # steps: + # - name: ๐Ÿ›ซ Checkout + # uses: actions/checkout@v3 - - name: ๐Ÿ”Ž Check Code Format - run: if ! pipenv run black --check .; then exit 1; fi + # - name: ๐Ÿ Set up Python ${{ matrix.python-version }} + # uses: actions/setup-python@v4 + # with: + # python-version: ${{ matrix.python-version }} - - name: ๐Ÿ”Ž Check Migrations - run: pipenv run python manage.py makemigrations --check --dry-run + # - name: ๐Ÿ›  Install Dependencies + # run: | + # python -m pip install --upgrade pip + # python -m pip install pipenv + # pipenv install --dev - # TODO: assert code coverage target. - - name: ๐Ÿงช Test Code Units - run: pipenv run pytest + # - name: ๐Ÿ”Ž Check Code Format + # run: if ! pipenv run black --check .; then exit 1; fi - release: - concurrency: release - runs-on: ubuntu-latest - needs: [test] - if: github.ref_name == 'main' - steps: - - name: ๐Ÿ›ซ Checkout - uses: actions/checkout@v3 - with: - token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - fetch-depth: 0 + # - name: ๐Ÿ”Ž Check Migrations + # run: pipenv run python manage.py makemigrations --check --dry-run - - name: ๐Ÿ Set up Python - uses: actions/setup-python@v4 - with: - python-version: ${{ env.PYTHON_VERSION }} + # # TODO: assert code coverage target. + # - name: ๐Ÿงช Test Code Units + # run: pipenv run pytest + + # release: + # concurrency: release + # runs-on: ubuntu-latest + # needs: [test] + # if: github.ref_name == 'main' + # steps: + # - name: ๐Ÿ›ซ Checkout + # uses: actions/checkout@v3 + # with: + # token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + # fetch-depth: 0 + + # - name: ๐Ÿ Set up Python + # uses: actions/setup-python@v4 + # with: + # python-version: ${{ env.PYTHON_VERSION }} - - name: ๐Ÿ›  Install Dependencies - run: | - python -m pip install --upgrade pip - python -m pip install python-semantic-release~=7.33 + # - name: ๐Ÿ›  Install Dependencies + # run: | + # 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 + # - name: โš™๏ธ Configure Git + # run: | + # git config --local user.name cfl-bot + # git config --local user.email codeforlife-bot@ocado.com - - name: ๐Ÿš€ Publish Semantic Release - env: - GH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - run: semantic-release publish --verbosity=INFO + # - name: ๐Ÿš€ Publish Semantic Release + # env: + # GH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + # run: semantic-release publish --verbosity=INFO