|
| 1 | +name: pywin32-ctypes |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [ master ] |
| 6 | + pull_request: |
| 7 | + branches: [ master ] |
| 8 | + |
| 9 | +jobs: |
| 10 | + tests: |
| 11 | + strategy: |
| 12 | + matrix: |
| 13 | + python-version: [2.7, 3.3, 3.4, 3.6, 3.7] |
| 14 | + os: [windows-2019] |
| 15 | + runs-on: ${{ matrix.os }} |
| 16 | + steps: |
| 17 | + - uses: actions/checkout@v2 |
| 18 | + - name: Set up Python ${{ matrix.python-version }} |
| 19 | + uses: actions/setup-python@v2 |
| 20 | + with: |
| 21 | + python-version: ${{ matrix.python-version }} |
| 22 | + architecture: 'x64' |
| 23 | + - name: Test on ${{ matrix.python-version }} 64-bit |
| 24 | + run: | |
| 25 | + pip install -q -rtest-requirements.txt |
| 26 | + pip --version |
| 27 | + coverage run -p -m haas -v win32ctypes |
| 28 | + pip install --upgrade cffi |
| 29 | + coverage run -p -m haas -v win32ctypes |
| 30 | + - name: Set up Python ${{ matrix.python-version }} |
| 31 | + uses: actions/setup-python@v2 |
| 32 | + with: |
| 33 | + python-version: ${{ matrix.python-version }} |
| 34 | + architecture: 'x86' |
| 35 | + - name: test on ${{ matrix.python-version }} 32-bit |
| 36 | + run: | |
| 37 | + pip install -q -rtest-requirements.txt |
| 38 | + pip --version |
| 39 | + coverage run -p -m haas -v win32ctypes |
| 40 | + pip install --upgrade cffi |
| 41 | + coverage run -p -m haas -v win32ctypes |
| 42 | + - uses: actions/upload-artifact@v2 |
| 43 | + with: |
| 44 | + name: Upload Coverage info |
| 45 | + path: .coverage* |
| 46 | + code-lint: |
| 47 | + runs-on: ubuntu-latest |
| 48 | + steps: |
| 49 | + - uses: actions/checkout@v2 |
| 50 | + - name: Set up Python 3.6 |
| 51 | + uses: actions/setup-python@v2 |
| 52 | + with: |
| 53 | + python-version: 3.6 |
| 54 | + - name: Install flake8 |
| 55 | + run: python -m pip install flake8 |
| 56 | + - name: Lint codebase |
| 57 | + run: python -m flake8 win32ctypes/ |
| 58 | + |
0 commit comments