Skip to content

Commit

Permalink
updates CI
Browse files Browse the repository at this point in the history
  • Loading branch information
saxix committed Oct 18, 2024
1 parent 9f4c737 commit cdd19a9
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,10 @@ jobs:
name: codecov-${{env.GITHUB_REF_NAME}}
- name: Build Distro
run: |
docker run --rm \
--network host \
-e PYTHONPATH=/app/src \
-e DATABASE_URL=${DATABASE_URL} \
-v "./src/:/app/src" \
-v "./tests:/app/tests" \
-v "./pytest.ini:/app/pytest.ini" \
-t "unicef/hope-country-workspace:${{env.BRANCH}}-test-${{env.checksum}}" \
pytest -c /app/pytest.ini tests/ -v --maxfail=5 --migrations --cov
docker build \
--target dist \
-t "unicef/hope-country-workspace:${{env.BRANCH}}" \
--cache-from "type=gha" \
--cache-to "type=gha,mode=max" \
-f docker/Dockerfile .
docker push "unicef/hope-country-workspace:${{env.BRANCH}}"

0 comments on commit cdd19a9

Please sign in to comment.