chore: add issue and pull request templates #9
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| 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.10', '3.12', '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: . |