Skip to content

Commit

Permalink
Merge branch 'main' into release-please--branches--main--components--…
Browse files Browse the repository at this point in the history
…release-please-action
  • Loading branch information
Kohulan authored Nov 12, 2024
2 parents 64ea770 + 04c360b commit 092b784
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
name: test

on:
workflow_call:
name: API workflow

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v4.1.4
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
Expand All @@ -37,16 +38,16 @@ jobs:
- name: Analysing the code with pylint
run: |
flake8 --per-file-ignores="__init__.py:F401" --ignore E402,E501,W503 $(git ls-files '*.py') .
- name: Run test
- name: Run tests and collect coverage
run: |
python3 -m pytest --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
directory: ./coverage/reports/
file: ./coverage.xml
fail_ci_if_error: true
files: /home/runner/work/cheminformatics-microservice/cheminformatics-microservice/coverage.xml
flags: unittests
flags: service
name: codecov-umbrella
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 092b784

Please sign in to comment.