Skip to content

Commit

Permalink
Upload code report to codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
ale94mleon committed Jan 24, 2024
1 parent 0a09f4f commit c00f97d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 18 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,13 @@ on:

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest] #windows-latest (vina is not available for windows in conda-forge),m think about use bioconda autodock-vina
python-version: [3.8, 3.9, '3.10', 3.11]
steps:
# - uses: actions/checkout@v3
# - name: Setup conda
# uses: s-weigand/setup-conda@v1
# with:
# update-conda: true
# python-version: ${{ matrix.python-version }}
# conda-channels: anaconda, conda-forge
# - name: Install dependencies from conda
# run: |
# conda install -y -c conda-forge vina
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand All @@ -66,7 +55,10 @@ jobs:
echo after "Lint with flake8" My python version is actually: $(python --version).
- name: Test with pytest
run: |
pytest --cov moldrug
- name: Upload coverage reports to Codecov with GitHub Action
pytest tests --cov moldrug --cov-report xml
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@v1
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9'
uses: codecov/codecov-action@v3
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jupyter_execute
error
*.costfunc_MolDrug*
.coverage*
coverage.xml
interesting_struct.txt
nohup.out
my_cost.py
Expand Down
5 changes: 1 addition & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ MolDrug
* - **Tutorials**
- |binder|
* - **CI/CD**
- |tests| |codecov| |codacy| |CodeQL|
- |tests| |codacy| |CodeQL|
* - **Build**
- |pypi-version| |conda|
* - **Source Code**
Expand Down Expand Up @@ -78,9 +78,6 @@ with the pharmaceutical company `Boehringer Ingelheim <https://www.boehringer-in
.. |tests| image:: https://github.com/ale94mleon/MolDrug/actions/workflows/tests.yml/badge.svg
:target: https://github.com/ale94mleon/MolDrug/actions/workflows/tests.yml
:alt: tests
.. |codecov| image:: https://codecov.io/gh/ale94mleon/MolDrug/branch/main/graph/badge.svg?token=RTLKQ070YX
:target: https://codecov.io/gh/ale94mleon/MolDrug
:alt: codecov
.. |codacy| image:: https://app.codacy.com/project/badge/Grade/08a3ac7c13df4339b8a1da0e8d31810e
:target: https://app.codacy.com/gh/ale94mleon/MolDrug/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade
:alt: codacy
Expand Down

0 comments on commit c00f97d

Please sign in to comment.