Fixed testing workflow #2
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: Test manual-pkgs | |
| on: | |
| push: | |
| branches: ["**"] | |
| pull_request: | |
| branches: ["**"] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: debian:12 | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Create and activate virtual environment | |
| run: | | |
| python3 -m venv venv | |
| source venv/bin/activate | |
| echo "source venv/bin/activate" >> $GITHUB_ENV | |
| - name: Install dependencies | |
| run: | | |
| source venv/bin/activate | |
| pip install --upgrade pip | |
| pip install pytest pytest-cov | |
| - name: Run Tests | |
| run: | | |
| source venv/bin/activate | |
| pytest --cov=get_manual_pkgs --cov-report=term-missing tests | |