diff --git a/.github/workflows/autofmt.yml b/.github/workflows/autofmt.yml index 494109b5..2be96881 100644 --- a/.github/workflows/autofmt.yml +++ b/.github/workflows/autofmt.yml @@ -8,9 +8,9 @@ jobs: runs-on: windows-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.7 - name: Install black diff --git a/.github/workflows/autotest.yml b/.github/workflows/autotest.yml index efeaad4e..6ed75ac4 100644 --- a/.github/workflows/autotest.yml +++ b/.github/workflows/autotest.yml @@ -5,26 +5,21 @@ on: branches: [main] jobs: - tests: + unit-tests: runs-on: ${{ matrix.os }} strategy: matrix: - os: [windows-latest, windows-2019] + os: [windows-latest] python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] architecture: ['x86', 'x64'] + npsupport: ['with npsupport', 'without npsupport'] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 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 @@ -34,8 +29,32 @@ jobs: ./server.exe /RegServer - name: unittest comtypes run: | + if ("${{ matrix.npsupport }}" -eq "with npsupport") { + pip install numpy + } python -m unittest discover -v -s ./comtypes/test -t comtypes\test - name: Unregister the OutProc COM server run: | cd source/CppTestSrv - ./server.exe /UnregServer \ No newline at end of file + ./server.exe /UnregServer + + install-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'] + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + 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