Skip to content

Commit 7410009

Browse files
chore: add prism file
1 parent 4817f90 commit 7410009

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

.github/workflows/test-and-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
sudo apt-get install -y docker-compose
3838
3939
- name: Build & Test
40-
run: make test-docker version=${{ matrix.python-version }} raw_token=${{ secrets.RAW_GITHUB_TOKEN }}
40+
run: make test-docker version=${{ matrix.python-version }}
4141
env:
4242
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4343

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,3 @@ __pycache__
2626
example.pdf
2727
TODO.txt
2828
twilio.env
29-
prism*

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ test-integ: test
1818

1919
version ?= latest
2020
test-docker:
21-
curl -s https://raw.githubusercontent.com/sendgrid/sendgrid-oai/refs/heads/main/prism/prism.sh?token=$(raw_token) -o prism.sh
2221
version=$(version) bash ./prism.sh
2322

2423
clean: nopyc

prism.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
set -e
3+
4+
rm -rf prism && mkdir -p prism && cd prism
5+
git clone --depth 1 https://${GITHUB_TOKEN}@github.com/sendgrid/sendgrid-oai .
6+
cd prism
7+
8+
docker-compose build --parallel
9+
10+
if [ -z "$command" ]; then
11+
docker-compose up --force-recreate --abort-on-container-exit --remove-orphans
12+
else
13+
docker-compose run helper-runner "$command"
14+
docker-compose down
15+
fi

0 commit comments

Comments
 (0)