Skip to content

Commit

Permalink
fix: github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquimds committed Mar 8, 2024
1 parent 04fa6c3 commit 27b1409
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 62 deletions.
46 changes: 0 additions & 46 deletions .github/actions/in-container/action.yml

This file was deleted.

25 changes: 9 additions & 16 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,20 @@ on:

jobs:
tests:
runs-on: ubuntu-latest
runs-on: python:3.12
steps:

- name: checkout repo content
uses: actions/checkout@v2

- name: install poetry
run: curl -sSL https://install.python-poetry.org | python3 -
- name: install dependencies
run: poetry install
- name: Run django tests
uses: ./.github/actions/in-container
with:
use_dev_image: false
run: |
script/bootstrap
script/test --coverage
# do this inside the docker container otherwise the paths don't work
run: |
script/bootstrap
script/test --coverage
- name: generate coverage xml
uses: ./.github/actions/in-container
with:
run: coverage xml

# do this outside the docker container otherwise can't get repo details
run: coverage xml
- name: upload code coverage
run: |
less coverage.xml
Expand Down

0 comments on commit 27b1409

Please sign in to comment.