Skip to content

Commit

Permalink
add actions back
Browse files Browse the repository at this point in the history
  • Loading branch information
carlmontanari committed Feb 2, 2020
1 parent 595bfb1 commit 53108bc
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -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.
26 changes: 26 additions & 0 deletions .github/workflows/commit.yaml
Original file line number Diff line number Diff line change
@@ -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

28 changes: 28 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -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/*
28 changes: 28 additions & 0 deletions .github/workflows/weekly.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 53108bc

Please sign in to comment.