File tree Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -57,23 +57,31 @@ jobs:
57
57
needs : build
58
58
runs-on : ubuntu-latest
59
59
steps :
60
- - name : Checkout repository
61
- uses : actions/checkout@v4
62
60
63
61
- name : Set up Docker Compose
64
62
run : |
65
63
sudo apt-get update
66
64
sudo apt-get install -y docker-compose
67
65
68
- - name : Pull the latest image
69
- run : |
70
- docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
66
+ - name : Log in to the Container registry
67
+ uses : docker/login-action@v3
68
+ with :
69
+ registry : ${{ env.REGISTRY }}
70
+ username : ${{ github.actor }}
71
+ password : ${{ secrets.GITHUB_TOKEN }}
72
+
73
+
74
+ # - name: Pull the latest image
75
+ # run: |
76
+ # docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
71
77
72
78
- name : Run tests with Docker Compose
73
79
run : |
74
80
docker-compose -f docker-compose.test.yml up --exit-code-from tests
75
81
env :
76
82
IMAGE_TAG : ${{ github.sha }}
83
+ REGISTRY : ${{ env.REGISTRY }}
84
+ IMAGE_NAME : ${{ env.IMAGE_NAME }}
77
85
78
86
- name : Clean up
79
87
if : always()
Original file line number Diff line number Diff line change
1
+ version : ' 0.0.1'
2
+
3
+ services :
4
+ tests :
5
+ image : ${REGISTRY}/${IMAGE_NAME}:${IMAGE_TAG}
6
+ command : python -m pytest tests/
You can’t perform that action at this time.
0 commit comments