Merge pull request #69 from ktbyers/develop #80
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 nornir_netmiko | |
on: [push, pull_request] | |
jobs: | |
linters: | |
name: linters | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.10.4 | |
- name: Install Poetry | |
uses: snok/[email protected] | |
with: | |
version: 1.3.2 | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
- name: Install the library itself | |
run: poetry install --no-interaction | |
- name: Inspecting things | |
run: | | |
source .venv/bin/activate | |
echo $PATH | |
pwd | |
which python | |
pip list | |
- name: Run black | |
run: | | |
source .venv/bin/activate | |
black --check . | |
- name: Run linter | |
run: | | |
source .venv/bin/activate | |
pylama . | |
- name: Run mypy | |
run: | | |
source .venv/bin/activate | |
mypy ./nornir_netmiko/ |