Skip to content

Commit

Permalink
Temp edit actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanholmes committed May 22, 2024
1 parent 4edffea commit 6e46c04
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 81 deletions.
118 changes: 59 additions & 59 deletions .github/workflows/code-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
1 change: 0 additions & 1 deletion .github/workflows/docs-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/pull-request-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ""
26 changes: 13 additions & 13 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6e46c04

Please sign in to comment.