Skip to content

Create module for SshFactory #50

Create module for SshFactory

Create module for SshFactory #50

Workflow file for this run

name: Python Test
on:
push:
branches: ["*"]
pull_request:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pull-requests: write
jobs:
lint_and_test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install dependencies
run: |
poetry install
poetry add coverage pytest-cov
- name: Run pytest
run: |
cd src
poetry run pytest \
-vv --disable-warnings \
--tb=short --cov-report xml:../coverage.xml --cov=marsh \
--ignore=../tests/ssh/test_ssh_connector.py \
--ignore=../tests/ssh/test_ssh_factory.py \
../tests/
- name: Get Coverage
if: ${{ github.event_name == 'pull_request' }}
uses: orgoro/[email protected]
with:
coverageFile: coverage.xml
token: ${{ secrets.GITHUB_TOKEN }}