Add default log level to write_logs #873
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: windows-tests | |
| # The default shell here is Powershell | |
| # Don't run with python 3.3 as using python -m to run flake8 or pytest will fail. | |
| # Hence, without python -m, pytest will not have it's PYTHONPATH set to current dir and imports will fail | |
| # Don't run with python 3.4 as github cannot install it (pip install --upgrade pip fails) | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [windows-latest] | |
| # As of 2023/08/30, we have removed python 2.7 since github actions won't provide it anymore | |
| # Don't test on pypy since we don't have pywin32 | |
| # Drop python 3.7 support since 3.8 requires Win7+ and even restic needs a legacy build for Win7 | |
| python-version: [3.8, 3.9, "3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install --upgrade setuptools | |
| if (Test-Path "npbackup/requirements.txt") { pip install -r npbackup/requirements.txt } | |
| - name: Generate Report | |
| env: | |
| RUNNING_ON_GITHUB_ACTIONS: true | |
| run: | | |
| pip install pytest coverage | |
| python -m coverage run -m pytest -vvs tests | |
| - name: Upload Coverage to Codecov | |
| uses: codecov/codecov-action@v3 |