Skip to content

Commit

Permalink
Combine CodeCov uploads in all test steps - Refs #1329
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaoming committed Dec 5, 2023
1 parent 626f517 commit 0e4f95d
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ jobs:
- image: cimg/python:<<parameters.python_version>>
steps:
- checkout
- run: pip install hatch && python -m hatch --env test.<<parameters.hatch_env>> run all
- run: pip install coverage[toml] hatch
- run: python -m hatch --env test.<<parameters.hatch_env>> run all
- codecov/upload

lint:
description: "Simple job for linting the pushed code"
Expand All @@ -30,18 +32,6 @@ jobs:
- checkout
- run: pip install hatch && python -m hatch --env test.py3.11-dj4.2 run lint

coverage:
description: "Job to check the coverage"
docker:
- image: cimg/python:3.11
steps:
- checkout
- run: pip install coverage[toml]
- run: pip install hatch && python -m hatch --env test.py3.11-dj4.2 run all
- run: python -m coverage report -m
- run: python -m coverage xml
- codecov/upload


workflows:
main:
Expand Down Expand Up @@ -77,4 +67,3 @@ workflows:
hatch_env: "py3.11-dj4.2"
python_version: "3.11"
- lint
- coverage

0 comments on commit 0e4f95d

Please sign in to comment.