Skip to content

Commit 592007a

Browse files
authored
Add CD for integration tests (#82)
* Add CI for integration tests * Add workflow * install beam-client * Pipe in token * Pipe in token * Pipe in token * update command * update command * use config * simple directory fix * use correct file * check something * should work * update on push * cleanup
1 parent 32f11c2 commit 592007a

File tree

3 files changed

+78
-0
lines changed

3 files changed

+78
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Deploy Integration Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy-integration-tests:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Set up Python 3.12
14+
uses: actions/setup-python@v2.2.1
15+
with:
16+
python-version: 3.12
17+
18+
- name: Checkout repository and submodules
19+
uses: actions/checkout@v2
20+
21+
- name: Install and configure Poetry
22+
env:
23+
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
24+
uses: snok/install-poetry@v1
25+
with:
26+
version: 1.8.3
27+
virtualenvs-create: true
28+
virtualenvs-in-project: true
29+
installer-parallel: true
30+
31+
- name: Install
32+
run: |
33+
poetry export --without-hashes --format=requirements.txt > requirements.txt
34+
pip install -r requirements.txt
35+
36+
- name: Configure Beta9
37+
env:
38+
BETA9_TOKEN: ${{ secrets.BEAM_INTEGRATION_TEST_TOKEN }}
39+
run: |
40+
touch inputs.txt
41+
echo gateway.stage.beam.cloud >> inputs.txt
42+
echo 443 >> inputs.txt
43+
echo $BETA9_TOKEN >> inputs.txt
44+
cat inputs.txt | beta9 config create default
45+
46+
- name: Deploy
47+
run: cd tests && beta9 deploy app.py:run_tests -n integration-tests

beam

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
token config create test1 --token testtoken --gateway-host gateway.stage.beam.cloud --gateway-port 443
2+
token config create test1 --token testtoken --gateway-host gateway.stage.beam.cloud --gateway-port 443
3+
token config create test2 --token testtoken --gateway-host gateway.stage.beam.cloud --gateway-port 443

tests/.beta9ignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Generated by Beta9 SDK
2+
.beta9ignore
3+
pyproject.toml
4+
.git
5+
.idea
6+
.python-version
7+
.vscode
8+
.venv
9+
venv
10+
__pycache__
11+
.DS_Store
12+
.config
13+
drive/MyDrive
14+
.coverage
15+
.pytest_cache
16+
.ipynb
17+
.ruff_cache
18+
.dockerignore
19+
.ipynb_checkpoints
20+
.env.local
21+
.envrc
22+
**/__pycache__/
23+
**/.pytest_cache/
24+
**/node_modules/
25+
**/.venv/
26+
*.pyc
27+
.next/
28+
.circleci

0 commit comments

Comments
 (0)