Skip to content

Merge pull request #6 from kekec14/kekec14-patch-1 #30

Merge pull request #6 from kekec14/kekec14-patch-1

Merge pull request #6 from kekec14/kekec14-patch-1 #30

Workflow file for this run

name: windows-tests
# Remember kids, 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]
# Don't use pypy on windows since it does not have pywin32 module
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", 'pypy-3.6', 'pypy-3.7', 'pypy-3.8']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if (Test-Path "configparser_crypt/requirements.txt") { pip install -r configparser_crypt/requirements.txt }
# Add additional windows requirements
if (Test-Path "configparser_crypt/requirements-win.txt") { pip install -r configparser_crypt/requirements-win.txt }
- name: Execute tests and generate coverage report
run: |
pip install pytest coverage
python -m coverage run -m pytest -s tests
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v1