added possibility to provide neighborhood order as strings when calli… #395
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: Push | |
on: [push] | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.9', '3.10'] | |
poetry-version: ['1.3.2'] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Run image | |
uses: abatilo/actions-poetry@v2.1.4 | |
with: | |
poetry-version: ${{ matrix.poetry-version }} | |
- name: Install dependencies | |
run: poetry install -E docs | |
- name: Run tests | |
run: poetry run pytest --cov=./ --cov-report=xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
# - name: Install Pandoc | |
# run: sudo apt-get install -y pandoc | |
# - name: Build docs | |
# run: | | |
# mkdir gh-pages | |
# touch gh-pages/.nojekyll | |
# cd docs/ | |
# poetry run sphinx-build -b html . _build | |
# cp -r _build/* ../gh-pages/ | |
# - name: Deploy documentation | |
# if: ${{ github.event_name == 'push' }} | |
# uses: JamesIves/github-pages-deploy-action@4.1.4 | |
# with: | |
# branch: gh-pages | |
# folder: gh-pages | |
code-quality: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.10'] | |
poetry-version: ['1.3.2'] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Run image | |
uses: abatilo/actions-poetry@v2.1.4 | |
with: | |
poetry-version: ${{ matrix.poetry-version }} | |
- name: Install dependencies | |
run: poetry install | |
- name: Run black | |
run: poetry run black . --check | |
- name: Run isort | |
run: poetry run isort . --check-only --profile black | |
- name: Run flake8 | |
run: poetry run flake8 . | |
- name: Run bandit | |
run: poetry run bandit . | |
# - name: Run saftey | |
# run: poetry run safety check | |
docs: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.9'] | |
poetry-version: ['1.3.2'] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Run image | |
uses: abatilo/actions-poetry@v2.1.4 | |
with: | |
poetry-version: ${{ matrix.poetry-version }} | |
- name: install | |
run: poetry install -E docs | |
- name: Install Pandoc | |
run: sudo apt-get install -y pandoc | |
- name: Build docs | |
run: | | |
mkdir gh-pages | |
touch gh-pages/.nojekyll | |
cd docs/ | |
poetry run sphinx-build -b html . _build | |
cp -r _build/* ../gh-pages/ | |
- name: Deploy documentation | |
if: ${{ github.event_name == 'push' }} | |
uses: JamesIves/github-pages-deploy-action@4.1.4 | |
with: | |
branch: gh-pages | |
folder: gh-pages |