-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
36eb579
commit 24908d3
Showing
8 changed files
with
575 additions
and
951 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Code Coverage | ||
on: | ||
workflow_call: | ||
workflow_dispatch: # to trigger manually | ||
|
||
jobs: | ||
coverage: | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 10 | ||
strategy: | ||
max-parallel: 8 | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
python-version: [ '3.10' ] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
|
||
- name: Install packages | ||
run: | | ||
poetry run make config-poetry | ||
poetry run make install-all | ||
- name: Show installed packages | ||
run: | | ||
poetry run poetry show | ||
poetry run poetry show --tree | ||
- name: Run unit tests | ||
run: | | ||
poetry run make unit-test-cov | ||
- name: Upload coverage to Codecov | ||
if: github.repository == 'durandtibo/coola' && (github.event_name == 'push' || github.event_name == 'pull_request') | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
files: ./coverage.xml | ||
# Ignore codecov failures as the codecov server is not | ||
# very reliable but we don't want to report a failure | ||
# in the github UI just because the coverage report failed to | ||
# be published. | ||
fail_ci_if_error: false | ||
|
||
- name: Test & publish code coverage | ||
uses: paambaati/codeclimate-action@v5.0.0 | ||
env: | ||
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}} | ||
with: | ||
coverageLocations: ./coverage.xml:coverage.py | ||
debug: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Cyclic Imports | ||
on: | ||
workflow_call: | ||
workflow_dispatch: # to trigger manually | ||
|
||
jobs: | ||
cyclic-import: | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 10 | ||
strategy: | ||
max-parallel: 8 | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
python-version: [ '3.10' ] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
|
||
- name: Install packages | ||
run: | | ||
poetry run make config-poetry | ||
poetry run make install-all | ||
- name: Show installed packages | ||
run: | | ||
poetry run poetry show | ||
poetry run poetry show --tree | ||
- name: check coola.comparators | ||
run: | | ||
poetry run python -c "from coola import comparators" | ||
- name: check coola.formatters | ||
run: | | ||
poetry run python -c "from coola import formatters" | ||
- name: check coola.reducers | ||
run: | | ||
poetry run python -c "from coola import reducers" | ||
- name: check coola.summarizers | ||
run: | | ||
poetry run python -c "from coola import summarizers" | ||
- name: check coola.testers | ||
run: | | ||
poetry run python -c "from coola import testers" | ||
- name: check coola.utils | ||
run: | | ||
poetry run python -c "from coola import utils" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Documentation Tests | ||
on: | ||
workflow_call: | ||
workflow_dispatch: # to trigger manually | ||
|
||
jobs: | ||
doctest: | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 10 | ||
strategy: | ||
max-parallel: 8 | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
python-version: [ '3.10' ] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
|
||
- name: Install packages | ||
run: | | ||
poetry run make config-poetry | ||
poetry run make install-all | ||
- name: Show installed packages | ||
run: | | ||
poetry run poetry show | ||
poetry run poetry show --tree | ||
- name: Run doctest on source code | ||
run: | | ||
poetry run make doctest-src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Format | ||
on: | ||
workflow_call: | ||
workflow_dispatch: # to trigger manually | ||
|
||
jobs: | ||
format: | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 10 | ||
strategy: | ||
max-parallel: 8 | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
python-version: [ '3.10' ] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
|
||
- name: Install packages | ||
run: | | ||
poetry run make config-poetry | ||
poetry run make install-all | ||
- name: Show installed packages | ||
run: | | ||
poetry run poetry show | ||
poetry run poetry show --tree | ||
- name: Format | ||
run: | | ||
poetry run make format | ||
- name: Lint | ||
run: | | ||
poetry run make lint |
Oops, something went wrong.