Merge pull request #27 from romecode/main #101
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: pytest-netdut | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest tox | |
- name: Test using tox | |
run: | | |
tox -s -e "py37,py38,py39,py310,py311" | |
# - name: Test Summary | |
# uses: test-summary/action@v1 | |
# with: | |
# paths: | | |
# test-reports/*.xml | |
# if: always() | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install tox build twine | |
- name: Lint | |
run: | | |
tox -e "black,prospector" | |
- name: Build and check the build | |
run: | | |
python3 -m build | |
twine check dist/* | |
# - name: Lint Summary | |
# uses: test-summary/action@v1 | |
# with: | |
# paths: | | |
# test-reports/*.xml | |
# if: always() |