Skip to content

Commit d1856a1

Browse files
committed
add test_endpoint in workflow
1 parent a4bbacd commit d1856a1

File tree

8 files changed

+54
-257
lines changed

8 files changed

+54
-257
lines changed

.github/workflows/create_model_endpoint.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,37 @@ jobs:
5050

5151
- name: Terraform Apply
5252
run: terraform apply -auto-approve
53+
54+
test_model_endpoint:
55+
runs-on: ubuntu-latest
56+
needs: create_model_endpoint
57+
58+
defaults:
59+
run:
60+
working-directory: test_model
61+
62+
steps:
63+
- uses: actions/checkout@v3
64+
65+
- name: Install uv
66+
uses: astral-sh/setup-uv@v5
67+
with:
68+
enable-cache: true
69+
70+
# Install dependencies
71+
- name: Set up Python
72+
run: uv python install
73+
74+
- name: Install the project
75+
run: uv sync --no-dev
76+
77+
- name: Configure AWS Credentials
78+
uses: aws-actions/configure-aws-credentials@v4
79+
with:
80+
audience: sts.amazonaws.com
81+
aws-region: ${{ env.AWS_REGION }}
82+
role-to-assume: arn:aws:iam::639269844451:role/github-actions
83+
role-session-name: ${{ env.ENVIRONMENT }}-deployment
84+
85+
- name: Run tests
86+
run: python test_endpoint.py

.gitignore

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,4 @@
1-
# Python-generated files
2-
__pycache__/
3-
*.py[oc]
4-
build/
5-
dist/
6-
wheels/
7-
*.egg-info
8-
9-
# Virtual environments
10-
.venv
11-
121
.DS_Store
132

14-
.pytest_cache/
15-
hf_model/
16-
model.tar.gz
17-
183
.terraform/
194
.terraform.lock.hcl

.python-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

Makefile

Lines changed: 0 additions & 25 deletions
This file was deleted.

project.code-workspace

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"folders": [
3+
{
4+
"name": "🔰 Root",
5+
"path": "."
6+
},
7+
{
8+
"name": "🚀 Continuous Deployment",
9+
"path": ".github/workflows"
10+
},
11+
{
12+
"name": "🏠 Infrastructure",
13+
"path": "terraform"
14+
},
15+
{
16+
"name": "⭐️ Model testing",
17+
"path": "test_model"
18+
}
19+
],
20+
}

pyproject.toml

Lines changed: 0 additions & 23 deletions
This file was deleted.

test_endpoint.py

Lines changed: 0 additions & 101 deletions
This file was deleted.

uv.lock

Lines changed: 0 additions & 92 deletions
This file was deleted.

0 commit comments

Comments
 (0)