This repository was archived by the owner on Oct 9, 2025. It is now read-only.
feat: github app token management #11
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: Tests | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| jobs: | |
| test: | |
| name: Run Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[test]" | |
| - name: Run tests | |
| run: | | |
| pytest cpk_lib_python_github/github_app_token_generator_package/tests/ -v | |
| - name: Run tests with coverage | |
| run: | | |
| pytest cpk_lib_python_github/github_app_token_generator_package/tests/ \ | |
| --cov=cpk_lib_python_github.github_app_token_generator_package.github_app_token_generator \ | |
| --cov-report=term-missing | |
| test-installation: | |
| name: Test Package Installation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - name: Install package | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e . | |
| - name: Test CLI command | |
| run: | | |
| github-app-token-generator --help |