Skip to content

Commit

Permalink
adding config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shangtai committed Aug 5, 2024
1 parent 9986997 commit 8d6c13a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
with:
python-version: '3.10'
- name: Install requirements
run: pip install -r api/requirements.txt
- name: Run tests and collect coverage
run: pytest --cov=api.calculator --cov-report=xml
- name: Upload coverage reports to Codecov with GitHub Action
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: 2.1

orbs:
codecov: codecov/[email protected]

jobs:
test-api:
docker:
- image: cimg/python:3.10.2
steps:
- checkout
- run:
name: Install requirements
command: pip install -r api/requirements.txt
- run:
name: Run tests and collect coverage
command: pytest --cov api.calculator
- codecov/upload

workflows:
version: 2.1
build-test:
jobs:
- test-api

0 comments on commit 8d6c13a

Please sign in to comment.