Skip to content

process: Avoid type hinting error, make var name more obvious #198

process: Avoid type hinting error, make var name more obvious

process: Avoid type hinting error, make var name more obvious #198

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
# As of 2023/10/06, we have removed python 2.7 fas they don't work anymore with windows on github
# As of 2023/10/06, we have removed python 2.7 fas they don't work anymore with windows on github
python-version: [3.5, 3.6, 3.7, 3.8, 3.9, "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
expiration: 30d
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
if (Test-Path "ofunctions/requirements.txt") { pip install -r ofunctions/requirements.txt }
- name: Execute tests and generate coverage report
env:
RUNNING_ON_GITHUB_ACTIONS: true
run: |
pip install pytest coverage
# $Env:RUNNING_ON_GITHUB_ACTIONS = true
python -m coverage run -m pytest -s tests
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3