Support additional cred attributes #98
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 }} | |
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 | |
pip install --upgrade cffi | |
coverage run -m haas -v win32ctypes | |
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 | |
pip install --upgrade cffi | |
coverage run -p -m haas -v win32ctypes | |
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/ |