Optionally output cytoscape json files #61
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
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
main: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest ] | |
python-version: [ 3.8, 3.9, "3.10", 3.11 ] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token | |
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Run pre-commit hooks | |
uses: pre-commit/[email protected] | |
- name: Run pre-commit CI | |
uses: pre-commit-ci/[email protected] | |
if: always() | |
- name: Install and configure Poetry | |
uses: snok/install-poetry@v1 | |
- name: Install | |
run: make install-ci | |
- name: Test | |
run: make test | |
- name: Coverage | |
if: matrix.python-version == '3.11' | |
run: make coverage | |
- name: Coverage Badge | |
if: matrix.python-version == '3.11' | |
uses: tj-actions/coverage-badge-py@v2 | |
- name: Verify Changed files | |
if: matrix.python-version == '3.11' | |
uses: tj-actions/verify-changed-files@v16 | |
id: verify-changed-files | |
with: | |
files: coverage.svg | |
- name: Coverage Commit files | |
if: steps.verify-changed-files.outputs.files_changed == 'true' | |
run: | | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git add coverage.svg | |
git commit -m "Updated coverage.svg" | |
- name: Coverage Push changes | |
if: steps.verify-changed-files.outputs.files_changed == 'true' | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.github_token }} | |
branch: ${{ github.head_ref }} | |