Add CI workflow for import and compile checks #1
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: Lint & Check | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install package | |
| run: pip install -e . | |
| - name: Check imports | |
| run: python -c "import langbly; print(f'langbly {langbly.__version__} imported successfully')" | |
| - name: Compile check | |
| run: python -m py_compile src/langbly/__init__.py && python -m py_compile src/langbly/client.py |