Skip to content

ci: restore tests in gha, linting, license bump #162

ci: restore tests in gha, linting, license bump

ci: restore tests in gha, linting, license bump #162

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches_ignore: []
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: singularityhub/install-singularity@main
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest semver pytest-runner requests
pip install .[all]
- name: Run unit tests
run: pytest -xs scompose/tests/test_*.py
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup black environment
run: conda create --quiet --name black
- name: Check Spelling
uses: crate-ci/typos@7ad296c72fa8265059cc03d1eda562fbdfcd6df2 # v1.9.0
with:
files: ./docs/getting_started/ ./docs/index.rst
- name: Lint and format Python code
run: |
export PATH="/usr/share/miniconda/bin:$PATH"
source activate black
pip install -r .github/dev-requirements.txt
pre-commit run --all-files