Skip to content

Commit

Permalink
Merge branch 'main' into feature/cardinality_constraint_to_botorch_vi…
Browse files Browse the repository at this point in the history
…a_sampling
  • Loading branch information
Waschenbacher committed Dec 16, 2024
2 parents b0dc037 + 813ab62 commit 3fa8b02
Show file tree
Hide file tree
Showing 87 changed files with 3,545 additions and 1,895 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ jobs:
tox -e audit-${{ matrix.py-version.tox }}
coretest:
needs: [typecheck, audit]
needs: [typecheck]
strategy:
matrix:
py-version: [ {semantic: '3.10', tox: 'py310'} ]
Expand All @@ -168,7 +168,7 @@ jobs:
tox -e coretest-${{ matrix.py-version.tox }}
fulltest:
needs: [typecheck, audit]
needs: [typecheck]
strategy:
matrix:
py-version: [ {semantic: '3.10', tox: 'py310'}, {semantic: '3.12', tox: 'py312'} ]
Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/manual_benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Run Benchmark

on:
workflow_dispatch:

permissions:
contents: read
id-token: write

jobs:
add-runner:
runs-on: ubuntu-latest
steps:
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
role-session-name: Github_Add_Runner
aws-region: eu-central-1
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
- name: Execute Lambda function
run: |
aws lambda invoke --function-name jit_runner_register_and_create_runner_container --cli-binary-format raw-in-base64-out --payload '{"github_api_secret": "${{ steps.generate-token.outputs.token }}", "count_container": 1, "container_compute": "XL", "repository": "${{ github.repository }}" }' response.json
cat response.json
if ! grep -q '"statusCode": 200' response.json; then
echo "Lambda function failed. statusCode is not 200."
exit 1
fi
benchmark-test:
needs: add-runner
runs-on: self-hosted
env:
BAYBE_BENCHMARKING_PERSISTENCE_PATH: ${{ secrets.TEST_RESULT_S3_BUCKET }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
id: setup-python
with:
python-version: "3.10"
- name: Benchmark
run: |
pip install '.[benchmarking]'
python -m benchmarks
Loading

0 comments on commit 3fa8b02

Please sign in to comment.