feat: Implement global cleanup and signal handling for V2Ray processes #17
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: Build + tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| name: Build and Install Package, Run Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install setuptools wheel pytest pytest-asyncio | |
| python -m pip install -r requirements-dev.txt | |
| python -m pip install -e . | |
| - name: Set V2Ray link | |
| run: | | |
| echo "TEST_V2RAY_LINK=${{ secrets.TEST_V2RAY_LINK }}" >> $GITHUB_ENV | |
| - name: Run Tests | |
| run: | | |
| python -m pytest tests/ --tb=short --disable-warnings |