Skip to content

Support additional cred attributes #101

Support additional cred attributes

Support additional cred attributes #101

Workflow file for this run

name: test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
tests:
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
os: [windows-2019]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'
- name: Install on ${{ matrix.python-version }} 64-bit
run: |
pip install -e .
pip install -r "test-requirements.txt"
pip --version
- name: Test on ${{ matrix.python-version }} 64-bit
run: |
coverage run -m haas -v win32ctypes
coverage run -p -m haas -v pywin32-tests
pip install --upgrade cffi
coverage run -m haas -v win32ctypes
coverage run -p -m haas -v pywin32-tests
env:
PYTHONFAULTHANDLER: 1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: 'x86'
- name: Install on ${{ matrix.python-version }} 32-bit
run: |
pip install -e .
pip install -r "test-requirements.txt"
pip --version
- name: test on ${{ matrix.python-version }} 32-bit
run: |
coverage run -p -m haas -v win32ctypes
coverage run -p -m haas -v pywin32-tests
pip install --upgrade cffi
coverage run -p -m haas -v win32ctypes
coverage run -p -m haas -v pywin32-tests
env:
PYTHONFAULTHANDLER: 1
- name: Generate coverage report
run: |
coverage combine
coverage html
- uses: actions/upload-artifact@v3
with:
name: Upload Coverage info
path: htmlcov/*
code-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install flake8
run: python -m pip install flake8
- name: Lint codebase
run: python -m flake8 win32ctypes/