Skip to content

Merge pull request #4 from ewels/fix/typed-process-io-parsing #59

Merge pull request #4 from ewels/fix/typed-process-io-parsing

Merge pull request #4 from ewels/fix/typed-process-io-parsing #59

Workflow file for this run

name: CI
on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Run ruff check
run: ruff check src/ tests/
- name: Run ruff format check
run: ruff format --check src/ tests/
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ty
pip install -e .
- name: Run type checking
run: ty check src/
build-css:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install dependencies
run: npm install
working-directory: build-assets
- name: Build Tailwind CSS
run: ./build-tailwind.sh
working-directory: build-assets
- name: Check for uncommitted CSS changes
run: |
if [[ -n $(git status --porcelain src/nf_docs/templates/tailwind.css) ]]; then
echo "::error::Tailwind CSS is out of date. Run './build-assets/build-tailwind.sh' and commit the changes."
git diff src/nf_docs/templates/tailwind.css
exit 1
fi
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Run tests
run: pytest -v --cov=nf_docs --cov-report=xml
- name: Upload coverage
uses: codecov/codecov-action@v4
if: matrix.python-version == '3.11'
with:
files: ./coverage.xml
fail_ci_if_error: false