Skip to content

Commit

Permalink
Merge pull request #173 from fast-aircraft-design/code-tools
Browse files Browse the repository at this point in the history
Code tools
  • Loading branch information
christophe-david committed May 16, 2020
2 parents 0460761 + 270640d commit 6a270ff
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .codacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
exclude_paths:
- '**/tests/**'
18 changes: 17 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,25 @@ jobs:
shell: bash

- name: Unit tests
run: poetry run pytest --no-cov src
run: |
poetry run pytest src
poetry run coverage xml # for Codacy coverage
shell: bash

- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@master
if: runner.os == 'Linux' && matrix.python-version == '3.7'
with:
project-token: ${{ secrets.codacy }}
coverage-reports: coverage.xml

- uses: codecov/codecov-action@v1
if: runner.os == 'Windows' && matrix.python-version == '3.7'
with:
flags: unittests # optional
name: codecov-FAST-OAD # optional
fail_ci_if_error: true # optional (default = false)

- name: Integration tests
run: poetry run pytest --no-cov tests/integration_tests
shell: bash
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
![Tests](https://github.com/fast-aircraft-design/FAST-OAD/workflows/Tests/badge.svg)
[![Documentation Status](https://readthedocs.org/projects/fast-oad/badge/?version=latest)](https://fast-oad.readthedocs.io/en/latest/?badge=latest)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/e0f42000b8af4ee999dbdcc80eeabfdc)](https://www.codacy.com/gh/fast-aircraft-design/FAST-OAD?utm_source=github.com&utm_medium=referral&utm_content=fast-aircraft-design/FAST-OAD&utm_campaign=Badge_Grade)
[![codecov](https://codecov.io/gh/fast-aircraft-design/FAST-OAD/branch/master/graph/badge.svg)](https://codecov.io/gh/fast-aircraft-design/FAST-OAD)

FAST-OAD: Future Aircraft Sizing Tool - Overall Aircraft Design
===============================================================
Expand Down

0 comments on commit 6a270ff

Please sign in to comment.