Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
push:
branches: [master, feature/v2]
pull_request:
branches: [master, feature/v2]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- run: pip install ruff==0.15.5
- run: ruff check --select F --ignore F401 --exclude "*/grpcauto/*" v2/

smoke-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.11', '3.13']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: pip install -r requirements.txt
- name: Smoke test v1 module
if: hashFiles('nacos/__init__.py') != ''
run: python -c "import nacos; print('v1 import ok')"
env:
PYTHONPATH: .
- name: Smoke test v2 module
run: python -c "import v2.nacos; print('v2 import ok')"
env:
PYTHONPATH: .