-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update: fix dependency * fix: update CI * fix: CI check 3.9 * fix: painted it black * fix: correct install in CI * fix: update poetry lock * fix: update code to new numpy version --------- Co-authored-by: Sylvain Chevallier <[email protected]>
- Loading branch information
Showing
5 changed files
with
850 additions
and
656 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -13,31 +13,34 @@ jobs: | |
strategy: | ||
fail-fast: true | ||
matrix: | ||
python_version: [3.7, 3.8, 3.9] | ||
python_version: [3.9] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: "Setup Python" | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python_version }} | ||
- uses: pre-commit/[email protected] | ||
- name: "Install dependencies" | ||
shell: bash | ||
run: | | ||
python -m pip install --upgrade pip poetry wheel flake8 coverage | ||
poetry config virtualenvs.create false | ||
poetry install | ||
- name: "Check style" | ||
shell: bash | ||
run: | | ||
flake8 | ||
|
||
- uses: pre-commit/[email protected] | ||
|
||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
|
||
- name: Install MDLA | ||
run: poetry install --no-interaction --with dev | ||
|
||
- name: "Run tests" | ||
shell: bash | ||
run: | | ||
pytest --cov=./ --cov-report=xml | ||
poetry run pytest --cov=./ --cov-report=xml | ||
- name: "Coverage" | ||
uses: codecov/codecov-action@v1 | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
files: ./coverage.xml | ||
flags: unittests | ||
|
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
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
Oops, something went wrong.