Skip to content

🐛 Fix git action #41

🐛 Fix git action

🐛 Fix git action #41

Workflow file for this run

name: build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
fast_finish: [false]
python-version: [3.10]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y libxml2-utils pandoc
curl -sSL https://install.python-poetry.org | python3 -
pip install --upgrade pip
pip install -e ".[docs, dev]"
install_pyg_dependencies
- name: Build documentation
run: |
sphinx-build -b html docs docs/_build
- name: Get version
run: |
VERSION=$(python -c "from scSLAT import __version__; print(__version__)")
echo "VERSION=${VERSION}" >> $GITHUB_ENV
- name: Create version badge
uses: schneegans/[email protected]
with:
auth: ${{ secrets.GIST_SECRET }}
gistID: ${{ secrets.GIST_ID }}
filename: slat_version.json
label: version
message: ${{ env.VERSION }}
color: blue