Skip to content

Update ci.yml

Update ci.yml #6

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
with:
scandir: harness/
severity: warning
additional_files: install.sh
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install pytest
run: pip install pytest
- name: Run tests
run: python3 -m pytest tests/test_parse_input.py -v --tb=short
bats:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install BATS
run: sudo apt-get update && sudo apt-get install -y bats
- name: Run BATS tests
run: bats tests/*.sh
install-smoke:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Smoke test install
run: |
bash install.sh --target generic
test -f ~/.enso/core/env.sh
test -f ~/.enso/core/rebuild-index.py
test -f ~/.enso/core/adapter.sh
test -f ~/.enso/hooks/stop/distill-lessons.sh
echo "Install smoke test passed"