Skip to content

Commit e46d90a

Browse files
committed
Adding requirements.txt
Signed-off-by: Ryan Lettieri <[email protected]>
1 parent 717ab88 commit e46d90a

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.github/workflows/publish-dts-sdk.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,37 @@ jobs:
2424
working-directory: durabletask-azuremanaged
2525
run: flake8 .
2626

27-
publish:
27+
28+
run-docker-tests:
2829
needs: lint
2930
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout repository
33+
uses: actions/checkout@v4
34+
35+
- name: Pull Docker image
36+
run: docker pull mcr.microsoft.com/dts/dts-emulator:v0.0.4
37+
38+
- name: Run Docker container
39+
run: |
40+
docker run --name dtsemulator -d -p 8080:8080 mcr.microsoft.com/dts/dts-emulator:v0.0.4
41+
42+
- name: Wait for container to be ready
43+
run: sleep 10 # Adjust if your service needs more time to start
44+
45+
- name: Set environment variables
46+
run: |
47+
echo "TASKHUB=default" >> $GITHUB_ENV
48+
echo "ENDPOINT=http://localhost:8080" >> $GITHUB_ENV
49+
50+
- name: Run the tests
51+
working-directory: durabletask-azuremanaged
52+
run: python -m dts_activity_sequence
53+
54+
55+
publish:
56+
needs: run-docker-tests
57+
runs-on: ubuntu-latest
3058
steps:
3159
- name: Checkout code
3260
uses: actions/checkout@v4

examples/dts/requirements.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
autopep8
2+
grpcio>=1.60.0 # 1.60.0 is the version introducing protobuf 1.25.X support, newer versions are backwards compatible
3+
protobuf
4+
pytest
5+
pytest-cov
6+
azure-identity
7+
durabletask-azuremanaged
8+
durabletask

0 commit comments

Comments
 (0)