Skip to content

README.rst

README.rst #64

Workflow file for this run

name: Run tests on push event
on:
push:
# Triggered by a push event on the following branches
branches: [ main ]
# Triggered by a tag that starts with "v"
tags: [ v* ]
# Triggered by any pull requests
pull_request: ~
jobs:
run_tests:
runs-on: ubuntu-latest
strategy:
matrix:
# python-version: [ 3.8 ]
python-version: [ 3.8, 3.9, "3.10" ]
steps:
# Checkout the code from the following branch
- uses: actions/checkout@main
# Set up the Python environment on the virtual machine
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
# Run tests
#- name: pylint
# run: pylint fortigate_api tests
- name: mypy
run: mypy --namespace-packages --explicit-package-bases fortigate_api tests
- name: pytest
run: pytest -v -m "not skip" tests
- name: coverage
run: pytest --cov=tests
- name: pydocstyle
run: pydocstyle .
- name: rst-lint
run: rst-lint README.rst CHANGELOG.rst