This commit is contained in:
26
.github/workflows/ci.yml
vendored
Normal file
26
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
name: ci
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
verify:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
- name: Unit tests
|
||||
run: PYTHONPATH=src python -m unittest
|
||||
- name: Compile checks
|
||||
run: python -m py_compile src/couchd/*.py
|
||||
- name: Shell syntax
|
||||
run: |
|
||||
bash -n setup.sh
|
||||
for file in scripts/*.sh; do
|
||||
bash -n "$file"
|
||||
done
|
||||
- name: Diff check
|
||||
run: git diff --check
|
||||
Reference in New Issue
Block a user