Support additional cred attributes #145
This file contains 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 | |
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 }} | |
needs: code-lint | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
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 -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: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
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: Upload Coverage info | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-${{matrix.python-version}} | |
path: .coverage.* | |
coverage: | |
runs-on: ubuntu-latest | |
needs: tests | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Download coverage artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
pattern: coverage-* | |
merge-multiple: true | |
- name: Install coverage | |
run: pip install coverage | |
- name: Generate coverage report | |
run: | | |
coverage combine | |
coverage report | |
coverage html | |
- name: Upload coverage report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-report | |
path: htmlcov/* | |
code-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.8 | |
- name: Install flake8 | |
run: python -m pip install flake8 | |
- name: Lint codebase | |
run: python -m flake8 win32ctypes/ |