Skip to content

add cluster (and UMAP) key #38

add cluster (and UMAP) key

add cluster (and UMAP) key #38

Workflow file for this run

name: Tests
on:
pull_request:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python -
poetry --version
poetry config virtualenvs.create false
- name: Install Dependencies
run: poetry install
- name: Run Tests
run: coverage run -m pytest
- name: Generate coverage badge
run: coverage-badge -f -o coverage.svg
- name: Check if there are any changes
id: verify_diff
run: |
git diff --quiet . || echo "changed=true" >> $GITHUB_OUTPUT
- name: Commit changes
if: steps.verify_diff.outputs.changed == 'true'
run: |
git config --global user.email "no-reply@github.com"
git config --global user.name "GitHub Actions"
git add coverage.svg
git commit -m "Update coverage badge"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}