Merge pull request #796 from christian-intra2net/unittest-automation #1
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: Python package | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
check: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: ["ubuntu-latest", "windows-latest", "macos-latest"] | |
python-version: ["3.x", "pypy-3.9"] | |
include: | |
- python-version: 3.x | |
runlint: 1 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -c "import sys; import platform; print(sys.version); print(sys.platform); print(platform.python_implementation()); print(platform.system())" | |
cat requirements.txt | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install pylint | |
- name: Run pylint | |
if: ${{ matrix.runlint }} | |
run: pylint -E --ignore=thirdparty oletools tests | |
- name: Run unittests | |
run: python -m unittest discover -f |