Skip to content

Commit

Permalink
Merge pull request #1589 from ScilifelabDataCentre/codecov
Browse files Browse the repository at this point in the history
Fix codecov action
  • Loading branch information
i-oden authored Jan 22, 2025
2 parents 117c0c8 + 91a9949 commit b5e4716
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/docker-compose-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,18 @@ jobs:
concurrency:
group: ${{ github.ref }}-pytest
cancel-in-progress: true
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Run tests against database container
run: docker compose -f docker-compose.yml -f tests/docker-compose-test.yml up --build --exit-code-from backend
run: |
pip install -r tests/requirements-test.txt
docker compose -f docker-compose.yml \
-f tests/docker-compose-test.yml up \
--build --exit-code-from backend
- name: Setup upterm session
uses: lhotari/action-upterm@v1
Expand All @@ -31,7 +35,7 @@ jobs:
## If no one connects after 5 minutes, shut down server.
wait-timeout-minutes: 5

- uses: codecov/codecov-action@v4
- uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/report.xml
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<br />
<img alt="Linting" src="https://github.com/ScilifelabDataCentre/dds_web/actions/workflows/python-black.yml/badge.svg">
<img alt="CodeQL" src="https://github.com/ScilifelabDataCentre/dds_web/actions/workflows/codeql-analysis.yml/badge.svg">
<a href="https://codecov.io/gh/ScilifelabDataCentre/dds_web">
<img alt="codecov" src="https://codecov.io/gh/ScilifelabDataCentre/dds_web/branch/dev/graph/badge.svg?token=r5tM6o08Sd">
<a href="https://codecov.io/github/ScilifelabDataCentre/dds_web" >
<img src="https://codecov.io/github/ScilifelabDataCentre/dds_web/graph/badge.svg?token=r5tM6o08Sd"/>
</a>
<img alt="Tests" src="https://github.com/ScilifelabDataCentre/dds_web/actions/workflows/docker-compose-tests.yml/badge.svg">
</p>
Expand Down
5 changes: 3 additions & 2 deletions SPRINTLOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ _Nothing merged during this sprint_
- New version: 2.9.0 ([#1584](https://github.com/ScilifelabDataCentre/dds_web/pull/1584))
- Instructions regarding database migrations moved to migrations directory, and Linkspector action added to scan for incorrect links in MD ([#1576](https://github.com/ScilifelabDataCentre/dds_web/pull/1576))

# 2024-12-20 - 2025-01-10
# 2024-12-20 - 2025-01-17

- Make release template ([1587](https://github.com/ScilifelabDataCentre/dds_web/pull/1587))
- Make release template ([#1587](https://github.com/ScilifelabDataCentre/dds_web/pull/1587))
- Fix codecov action ([#1589](https://github.com/ScilifelabDataCentre/dds_web/pull/1589))

0 comments on commit b5e4716

Please sign in to comment.