diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml index 5a03d3c..1f8d0b6 100644 --- a/.github/workflows/api.yml +++ b/.github/workflows/api.yml @@ -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 diff --git a/.github/workflows/config.yml b/.github/workflows/config.yml new file mode 100644 index 0000000..25284fc --- /dev/null +++ b/.github/workflows/config.yml @@ -0,0 +1,24 @@ +version: 2.1 + +orbs: + codecov: codecov/codecov@4.0.1 + +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 \ No newline at end of file