more metrics #190
Workflow file for this run
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
name: CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pylint | |
pip install -r requirements.txt | |
pip install -r config/requirements_qa.txt | |
- name: Analyzing the code with pylint | |
run: | | |
source config/bootstrap.sh | |
pylint lkmeans/ --rcfile config/.pylintrc | |
- name: Analyzing the code with isort | |
run: | | |
source config/bootstrap.sh | |
isort lkmeans/ -c | |
- name: Test optimizers | |
run: | | |
source config/bootstrap.sh | |
pytest lkmeans/tests -v -m optimizers | |
- name: Test LKMeans | |
run: | | |
source config/bootstrap.sh | |
pytest lkmeans/tests -v -m lkmeans | |
- name: Test API | |
run: | | |
source config/bootstrap.sh | |
pytest lkmeans/tests -v -m api | |
- name: Test Poetry Build | |
run: | | |
source config/bootstrap.sh | |
bash config/release_build.sh | |
twine check dist/* | |
- name: Publish artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: package | |
path: dist/ | |
if-no-files-found: error | |
retention-days: 1 |