From 6e46c04150a44c17f92f7ddcc90f7d817f88dedf Mon Sep 17 00:00:00 2001 From: dylanholmes <4370153+dylanholmes@users.noreply.github.com> Date: Wed, 22 May 2024 13:05:07 +0200 Subject: [PATCH] Temp edit actions --- .github/workflows/code-checks.yml | 118 +++++++++---------- .github/workflows/docs-integration-tests.yml | 1 - .github/workflows/pull-request-links.yml | 16 +-- .github/workflows/unit-tests.yml | 26 ++-- 4 files changed, 80 insertions(+), 81 deletions(-) diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index 16c9b58b4c..2819967e77 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -7,62 +7,62 @@ on: branches: [ "main", "dev" ] jobs: - format: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - python-version: ["3.12"] - steps: - - name: Checkout actions - uses: actions/checkout@v3 - - name: Init environment - uses: ./.github/actions/init-environment - - name: Run formatter - run: poetry run ruff format --check . - type-check: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - python-version: [ "3.12" ] - steps: - - name: Checkout actions - uses: actions/checkout@v3 - - name: Init environment - uses: ./.github/actions/init-environment - - name: Run type checker - run: poetry run pyright griptape/ - lint: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - python-version: [ "3.12" ] - steps: - - name: Checkout actions - uses: actions/checkout@v3 - - name: Init environment - uses: ./.github/actions/init-environment - - name: Run linter - run: poetry run ruff check griptape/ - coverage: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - python-version: ["3.12"] - steps: - - name: Checkout actions - uses: actions/checkout@v3 - - name: Init environment - uses: ./.github/actions/init-environment - - name: Run unit tests - run: pytest -n auto --cov=griptape tests/unit - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v4 - with: - flags: smart-tests - verbose: true - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + # format: + # runs-on: ubuntu-latest + # strategy: + # fail-fast: false + # matrix: + # python-version: ["3.12"] + # steps: + # - name: Checkout actions + # uses: actions/checkout@v3 + # - name: Init environment + # uses: ./.github/actions/init-environment + # - name: Run formatter + # run: poetry run ruff format --check . + # type-check: + # runs-on: ubuntu-latest + # strategy: + # fail-fast: false + # matrix: + # python-version: [ "3.12" ] + # steps: + # - name: Checkout actions + # uses: actions/checkout@v3 + # - name: Init environment + # uses: ./.github/actions/init-environment + # - name: Run type checker + # run: poetry run pyright griptape/ + # lint: + # runs-on: ubuntu-latest + # strategy: + # fail-fast: false + # matrix: + # python-version: [ "3.12" ] + # steps: + # - name: Checkout actions + # uses: actions/checkout@v3 + # - name: Init environment + # uses: ./.github/actions/init-environment + # - name: Run linter + # run: poetry run ruff check griptape/ + # coverage: + # runs-on: ubuntu-latest + # strategy: + # fail-fast: false + # matrix: + # python-version: ["3.12"] + # steps: + # - name: Checkout actions + # uses: actions/checkout@v3 + # - name: Init environment + # uses: ./.github/actions/init-environment + # - name: Run unit tests + # run: pytest -n auto --cov=griptape tests/unit + # - name: Upload coverage to Codecov + # uses: codecov/codecov-action@v4 + # with: + # flags: smart-tests + # verbose: true + # env: + # CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/docs-integration-tests.yml b/.github/workflows/docs-integration-tests.yml index ed27209175..1fefbd5a0e 100644 --- a/.github/workflows/docs-integration-tests.yml +++ b/.github/workflows/docs-integration-tests.yml @@ -9,7 +9,6 @@ on: - dev jobs: test: - if: github.event.review.state == 'APPROVED' || github.event_name == 'push' runs-on: ubuntu-latest strategy: fail-fast: false diff --git a/.github/workflows/pull-request-links.yml b/.github/workflows/pull-request-links.yml index 0d937ac946..0106e6c5d8 100644 --- a/.github/workflows/pull-request-links.yml +++ b/.github/workflows/pull-request-links.yml @@ -10,11 +10,11 @@ permissions: pull-requests: write jobs: - pull-request-links: - runs-on: ubuntu-latest - steps: - - uses: readthedocs/actions/preview@v1 - with: - project-slug: ${{ secrets.READTHEDOCS_PROJECT_SLUG }} - single-version: 'false' - project-language: "" + # pull-request-links: + # runs-on: ubuntu-latest + # steps: + # - uses: readthedocs/actions/preview@v1 + # with: + # project-slug: ${{ secrets.READTHEDOCS_PROJECT_SLUG }} + # single-version: 'false' + # project-language: "" diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 8c8b4cc56e..c6bd277a71 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -7,16 +7,16 @@ on: branches: [ "main", "dev" ] jobs: - test: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] - steps: - - name: Checkout actions - uses: actions/checkout@v3 - - name: Init environment - uses: ./.github/actions/init-environment - - name: Run unit tests - run: pytest -n auto tests/unit + # test: + # runs-on: ubuntu-latest + # strategy: + # fail-fast: false + # matrix: + # python-version: ["3.9", "3.10", "3.11", "3.12"] + # steps: + # - name: Checkout actions + # uses: actions/checkout@v3 + # - name: Init environment + # uses: ./.github/actions/init-environment + # - name: Run unit tests + # run: pytest -n auto tests/unit