Skip to content

Commit 6c5b23b

Browse files
committed
Update coveralls command
1 parent 6343e53 commit 6c5b23b

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/ci-cd.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,17 @@ jobs:
153153
if: matrix.test-type == 'frontend'
154154
run: |
155155
docker compose run nodejs bash -c "gulp dev && karma start --single-run && gulp staging"
156+
sudo curl -L "https://github.com/docker/compose/releases/download/v2.23.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
157+
sudo chmod +x /usr/local/bin/docker-compose
158+
docker-compose --version
159+
160+
- name: Set up Python 3.9
161+
uses: actions/setup-python@v4
162+
with:
163+
python-version: 3.9.21
164+
165+
- name: Install dependencies
166+
run: pip install awscli==1.18.66
156167

157168
- name: Run backend tests
158169
if: matrix.test-type == 'backend'
@@ -171,8 +182,11 @@ jobs:
171182
env:
172183
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
173184
run: |
174-
coveralls --rcfile=.coveragerc
175-
185+
echo "Attempting to submit coverage to Coveralls..."
186+
docker-compose run -e DJANGO_SETTINGS_MODULE=settings.test -e COVERALLS_REPO_TOKEN=${{ secrets.COVERALLS_REPO_TOKEN }} django bash -c "
187+
pip install coveralls &&
188+
coveralls --rcfile=.coveragerc" || echo "Coveralls submission failed, but continuing workflow"
189+
176190
deploy:
177191
name: Package & Deploy Services
178192
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)