diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 00000000..48bd7a89 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,36 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: bug +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Your script +2. What you're connecting to (vendor, platform, version) +3. Anything else relevant + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Stack Trace** +Copy of your stack trace here, please format it properly using triple back ticks (top left key on US keyboards!) + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**OS (please complete the following information):** + - OS: [e.g. Ubuntu, MacOS, etc. - Note this is *not* tested on Windows and likely will not be supported] + - nssh version + - ssh2python version + - paramiko version + - python version + +**Additional context** +Add any other context about the problem here. diff --git a/.github/workflows/commit.yaml b/.github/workflows/commit.yaml new file mode 100644 index 00000000..c561d970 --- /dev/null +++ b/.github/workflows/commit.yaml @@ -0,0 +1,26 @@ +name: Commit + +on: [push] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + max-parallel: 6 + matrix: + os: [ubuntu-latest, macos-latest] + python-version: [3.7, 3.8] + steps: + - uses: actions/checkout@v1 + - name: set up python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: setup test env + run: | + python -m pip install --upgrade pip + python -m pip install setuptools + python -m pip install tox + - name: run tox + run: python -m tox --skip-missing-interpreters=true + diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 00000000..8fbafcd2 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,28 @@ +name: Publish + +on: + release: + types: [created] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: set up python 3.8 + uses: actions/setup-python@v1 + with: + python-version: 3.8 + - name: setup publish env + run: | + python -m pip install --upgrade pip + python -m pip install setuptools + python -m pip install wheel + python -m pip install twine + - name: build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USER }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASS }} + run: | + python setup.py sdist bdist_wheel + python -m twine upload dist/* diff --git a/.github/workflows/weekly.yaml b/.github/workflows/weekly.yaml new file mode 100644 index 00000000..92651114 --- /dev/null +++ b/.github/workflows/weekly.yaml @@ -0,0 +1,28 @@ +name: Weekly Build + +on: + schedule: + # weekly at 0700 PST/1400 UTC on Sunday + - cron: '0 14 * * 0' + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + max-parallel: 6 + matrix: + os: [ubuntu-latest, macos-latest] + python-version: [3.7, 3.8] + steps: + - uses: actions/checkout@v1 + - name: set up python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: setup test env + run: | + python -m pip install --upgrade pip + python -m pip install setuptools + python -m pip install tox + - name: run tox + run: python -m tox --skip-missing-interpreters=true