Migrate to PEP 517 compliant build #26
Workflow file for this run
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 pywinrm | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
- windows-latest | |
python-version: | |
- 3.8 | |
- 3.9 | |
- '3.10' | |
- '3.11' | |
- '3.12' | |
- pypy-3.9 | |
- pypy-3.10 | |
arch: | |
- x86 | |
- x64 | |
exclude: | |
- os: macos-latest | |
arch: x86 | |
- os: macos-latest | |
python-version: pypy-3.9 | |
- os: macos-latest | |
python-version: pypy-3.10 | |
- os: ubuntu-latest | |
arch: x86 | |
- os: windows-latest | |
python-version: pypy-3.9 | |
- os: windows-latest | |
python-version: pypy-3.10 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set up python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: ${{ matrix.arch }} | |
- name: set up Linux dependencies | |
if: startsWith(matrix.os, 'ubuntu') | |
run: >- | |
sudo apt-get install -y | |
gcc | |
python-dev | |
libkrb5-dev | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
- name: install dependencies | |
run: | | |
pip install coveralls | |
pip install .[credssp,kerberos] | |
pip install -r requirements-test.txt | |
- name: run test | |
run: | | |
python -m black . --check | |
python -m isort . --check-only | |
pytest -v --cov=winrm --cov-report=term-missing winrm/tests/ | |
- name: upload coverage data | |
run: coveralls --service=github | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |