Skip to content

Workflow file for this run

on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# os: [windows-latest, windows-2019]
# python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
# architecture: ['x86', 'x64']
os: [windows-latest]
python-version: ['3.7']
architecture: ['x64']
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
- name: install comtypes
run: |
pip install --upgrade setuptools
python setup.py install
pip uninstall comtypes -y
python test_pip_install.py
- name: Set up MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Build and register the OutProc COM server
run: |
cd source/CppTestSrv
nmake /f Makefile
./server.exe /RegServer
- name: unittest comtypes
run: |
python -m unittest discover -v -s ./comtypes/test -t comtypes\test
# - name: Archive gen directory
# uses: actions/upload-artifact@v4
# with:
# name: gen-dir-${{ matrix.python-version }}-${{ matrix.architecture }}-${{ matrix.os }}
# path: comtypes/gen
- name: Zip
run: |
python -m zipfile -c gen.zip comtypes/gen/
- name: Commit
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: ${{ github.head_ref }}
file_pattern: "gen.zip"
commit_message: add `gen.zip`
commit_user_name: github-actions[bot]
commit_user_email: 41898282+github-actions[bot]@users.noreply.github.com
commit_author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- name: Unregister the OutProc COM server
run: |
cd source/CppTestSrv
./server.exe /UnregServer