Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
05a6c61
Rename split-tox-gh-actions
sentrivana Dec 19, 2024
653fcde
fix name
sentrivana Dec 19, 2024
4b0c23c
wip
sentrivana Dec 19, 2024
7252c2a
wip
sentrivana Jan 7, 2025
9bd7e79
Merge branch 'master' into ivana/populate-tox-2
sentrivana Jan 7, 2025
3407856
Merge branch 'master' into ivana/populate-tox-2
sentrivana Jan 7, 2025
e08255b
wip
sentrivana Jan 8, 2025
49c5c7a
wip
sentrivana Jan 8, 2025
eb88a0f
some fixes
sentrivana Jan 8, 2025
87b3609
no pinned/latest anymore
sentrivana Jan 8, 2025
29c4a8f
Merge branch 'master' into ivana/populate-tox-2
sentrivana Jan 8, 2025
e6db09c
fix py versions
sentrivana Jan 8, 2025
1c5300a
wip
sentrivana Jan 9, 2025
0c44202
move min versions to central place
sentrivana Jan 9, 2025
2fb3dc5
Centralize version checking
sentrivana Jan 9, 2025
984f623
Merge branch 'master' into ivana/populate-tox-2
sentrivana Jan 9, 2025
0bb2159
take min versions into account
sentrivana Jan 9, 2025
e4b3cb2
add missing files
sentrivana Jan 9, 2025
f0d5150
wip
sentrivana Jan 9, 2025
1883f67
Merge branch 'master' into ivana/populate-tox-2
sentrivana Jan 9, 2025
49c914e
.
sentrivana Jan 9, 2025
f74e911
...
sentrivana Jan 10, 2025
e19dd0c
more min versions
sentrivana Jan 10, 2025
1d88248
should be a bit better
sentrivana Jan 10, 2025
fc4acd0
fix
sentrivana Jan 10, 2025
1acffa6
.
sentrivana Jan 10, 2025
c9b4e86
.
sentrivana Jan 10, 2025
eb953d8
fix
sentrivana Jan 10, 2025
18e6e4e
Merge branch 'master' into ivana/populate-tox-2
sentrivana Jan 13, 2025
f0762d7
run all tests for now
sentrivana Jan 13, 2025
25014f9
add doc
sentrivana Jan 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
107 changes: 20 additions & 87 deletions .github/workflows/test-integrations-ai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ env:
CACHED_BUILD_PATHS: |
${{ github.workspace }}/dist-serverless
jobs:
test-ai-latest:
name: AI (latest)
test-ai:
name: AI
timeout-minutes: 30
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.7","3.9","3.11","3.12","3.13"]
python-version: ["3.6","3.7","3.8","3.9","3.13"]
# python3.6 reached EOL and is no longer being supported on
# new versions of hosted runners on Github Actions
# ubuntu-20.04 is the last version that supported python3.6
Expand All @@ -47,98 +47,31 @@ jobs:
- name: Erase coverage
run: |
coverage erase
- name: Test anthropic latest
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-anthropic-latest"
- name: Test cohere latest
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-cohere-latest"
- name: Test langchain latest
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-langchain-latest"
- name: Test openai latest
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-openai-latest"
- name: Test huggingface_hub latest
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-huggingface_hub-latest"
- name: Generate coverage XML (Python 3.6)
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
run: |
export COVERAGE_RCFILE=.coveragerc36
coverage combine .coverage-sentry-*
coverage xml --ignore-errors
- name: Generate coverage XML
if: ${{ !cancelled() && matrix.python-version != '3.6' }}
run: |
coverage combine .coverage-sentry-*
coverage xml
- name: Upload coverage to Codecov
if: ${{ !cancelled() }}
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
# make sure no plugins alter our coverage reports
plugin: noop
verbose: true
- name: Upload test results to Codecov
- name: Test anthropic
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .junitxml
verbose: true
test-ai-pinned:
name: AI (pinned)
timeout-minutes: 30
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.8","3.9","3.11","3.12","3.13"]
# python3.6 reached EOL and is no longer being supported on
# new versions of hosted runners on Github Actions
# ubuntu-20.04 is the last version that supported python3.6
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
os: [ubuntu-20.04]
steps:
- uses: actions/[email protected]
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Setup Test Env
run: |
pip install "coverage[toml]" tox
- name: Erase coverage
run: |
coverage erase
- name: Test anthropic pinned
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-anthropic"
- name: Test cohere pinned
./scripts/runtox.sh "py${{ matrix.python-version }}-anthropic"
- name: Test cohere
if: ${{ !cancelled() }}
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-cohere"
- name: Test langchain pinned
./scripts/runtox.sh "py${{ matrix.python-version }}-cohere"
- name: Test langchain
if: ${{ !cancelled() }}
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-langchain"
- name: Test openai pinned
./scripts/runtox.sh "py${{ matrix.python-version }}-langchain"
- name: Test openai
if: ${{ !cancelled() }}
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-openai"
- name: Test huggingface_hub pinned
./scripts/runtox.sh "py${{ matrix.python-version }}-openai"
- name: Test huggingface_hub
if: ${{ !cancelled() }}
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-huggingface_hub"
./scripts/runtox.sh "py${{ matrix.python-version }}-huggingface_hub"
- name: Generate coverage XML (Python 3.6)
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
run: |
Expand Down Expand Up @@ -167,13 +100,13 @@ jobs:
files: .junitxml
verbose: true
check_required_tests:
name: All pinned AI tests passed
needs: test-ai-pinned
name: All AI tests passed
needs: test-ai
# Always run this, even if a dependent job failed
if: always()
runs-on: ubuntu-20.04
steps:
- name: Check for failures
if: contains(needs.test-ai-pinned.result, 'failure') || contains(needs.test-ai-pinned.result, 'skipped')
if: contains(needs.test-ai.result, 'failure') || contains(needs.test-ai.result, 'skipped')
run: |
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1
15 changes: 8 additions & 7 deletions .github/workflows/test-integrations-aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ jobs:
- name: Check permissions on repo branch
if: github.event_name == 'push'
run: true
test-aws-pinned:
name: AWS (pinned)
test-aws:
name: AWS
timeout-minutes: 30
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -82,10 +82,11 @@ jobs:
- name: Erase coverage
run: |
coverage erase
- name: Test aws_lambda pinned
- name: Test aws_lambda
if: ${{ !cancelled() }}
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aws_lambda"
./scripts/runtox.sh "py${{ matrix.python-version }}-aws_lambda"
- name: Generate coverage XML (Python 3.6)
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
run: |
Expand Down Expand Up @@ -114,13 +115,13 @@ jobs:
files: .junitxml
verbose: true
check_required_tests:
name: All pinned AWS tests passed
needs: test-aws-pinned
name: All AWS tests passed
needs: test-aws
# Always run this, even if a dependent job failed
if: always()
runs-on: ubuntu-20.04
steps:
- name: Check for failures
if: contains(needs.test-aws-pinned.result, 'failure') || contains(needs.test-aws-pinned.result, 'skipped')
if: contains(needs.test-aws.result, 'failure') || contains(needs.test-aws.result, 'skipped')
run: |
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1
98 changes: 17 additions & 81 deletions .github/workflows/test-integrations-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ env:
CACHED_BUILD_PATHS: |
${{ github.workspace }}/dist-serverless
jobs:
test-cloud-latest:
name: Cloud (latest)
test-cloud:
name: Cloud
timeout-minutes: 30
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.8","3.11","3.12","3.13"]
python-version: ["3.6","3.7","3.8","3.9","3.12","3.13"]
# python3.6 reached EOL and is no longer being supported on
# new versions of hosted runners on Github Actions
# ubuntu-20.04 is the last version that supported python3.6
Expand All @@ -47,90 +47,26 @@ jobs:
- name: Erase coverage
run: |
coverage erase
- name: Test boto3 latest
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-boto3-latest"
- name: Test chalice latest
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-chalice-latest"
- name: Test cloud_resource_context latest
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-cloud_resource_context-latest"
- name: Test gcp latest
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-gcp-latest"
- name: Generate coverage XML (Python 3.6)
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
run: |
export COVERAGE_RCFILE=.coveragerc36
coverage combine .coverage-sentry-*
coverage xml --ignore-errors
- name: Generate coverage XML
if: ${{ !cancelled() && matrix.python-version != '3.6' }}
run: |
coverage combine .coverage-sentry-*
coverage xml
- name: Upload coverage to Codecov
- name: Test boto3
if: ${{ !cancelled() }}
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
# make sure no plugins alter our coverage reports
plugin: noop
verbose: true
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .junitxml
verbose: true
test-cloud-pinned:
name: Cloud (pinned)
timeout-minutes: 30
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.6","3.7","3.9","3.11","3.12","3.13"]
# python3.6 reached EOL and is no longer being supported on
# new versions of hosted runners on Github Actions
# ubuntu-20.04 is the last version that supported python3.6
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
os: [ubuntu-20.04]
steps:
- uses: actions/[email protected]
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Setup Test Env
run: |
pip install "coverage[toml]" tox
- name: Erase coverage
run: |
coverage erase
- name: Test boto3 pinned
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-boto3"
- name: Test chalice pinned
./scripts/runtox.sh "py${{ matrix.python-version }}-boto3"
- name: Test chalice
if: ${{ !cancelled() }}
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-chalice"
- name: Test cloud_resource_context pinned
./scripts/runtox.sh "py${{ matrix.python-version }}-chalice"
- name: Test cloud_resource_context
if: ${{ !cancelled() }}
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-cloud_resource_context"
- name: Test gcp pinned
./scripts/runtox.sh "py${{ matrix.python-version }}-cloud_resource_context"
- name: Test gcp
if: ${{ !cancelled() }}
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gcp"
./scripts/runtox.sh "py${{ matrix.python-version }}-gcp"
- name: Generate coverage XML (Python 3.6)
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
run: |
Expand Down Expand Up @@ -159,13 +95,13 @@ jobs:
files: .junitxml
verbose: true
check_required_tests:
name: All pinned Cloud tests passed
needs: test-cloud-pinned
name: All Cloud tests passed
needs: test-cloud
# Always run this, even if a dependent job failed
if: always()
runs-on: ubuntu-20.04
steps:
- name: Check for failures
if: contains(needs.test-cloud-pinned.result, 'failure') || contains(needs.test-cloud-pinned.result, 'skipped')
if: contains(needs.test-cloud.result, 'failure') || contains(needs.test-cloud.result, 'skipped')
run: |
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1
15 changes: 8 additions & 7 deletions .github/workflows/test-integrations-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ env:
CACHED_BUILD_PATHS: |
${{ github.workspace }}/dist-serverless
jobs:
test-common-pinned:
name: Common (pinned)
test-common:
name: Common
timeout-minutes: 30
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -47,10 +47,11 @@ jobs:
- name: Erase coverage
run: |
coverage erase
- name: Test common pinned
- name: Test common
if: ${{ !cancelled() }}
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-common"
./scripts/runtox.sh "py${{ matrix.python-version }}-common"
- name: Generate coverage XML (Python 3.6)
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
run: |
Expand Down Expand Up @@ -79,13 +80,13 @@ jobs:
files: .junitxml
verbose: true
check_required_tests:
name: All pinned Common tests passed
needs: test-common-pinned
name: All Common tests passed
needs: test-common
# Always run this, even if a dependent job failed
if: always()
runs-on: ubuntu-20.04
steps:
- name: Check for failures
if: contains(needs.test-common-pinned.result, 'failure') || contains(needs.test-common-pinned.result, 'skipped')
if: contains(needs.test-common.result, 'failure') || contains(needs.test-common.result, 'skipped')
run: |
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1
Loading
Loading