diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2021-01-29 21:46:15 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2021-01-29 21:46:15 -0500 |
commit | 0a2e3d6ac289ce20746ed2ae56e36c2cbba0f0db (patch) | |
tree | dd0bc4b34ebaf3a0efc47a12f89b5f87de70b743 | |
parent | cd377071cd122bc92a829322e00ae43fd5a5c254 (diff) | |
download | cmd2-git-0a2e3d6ac289ce20746ed2ae56e36c2cbba0f0db.tar.gz |
Move generitc GitHub files to .github directory
Also:
- Start to try to use GitHub Actions to do continuous integration testing
- Reduce number of TravisCI builds to see if it helps with how god awfully long it takes
-rw-r--r-- | .github/CODEOWNERS (renamed from CODEOWNERS) | 12 | ||||
-rw-r--r-- | .github/CODE_OF_CONDUCT.md (renamed from CODE_OF_CONDUCT.md) | 0 | ||||
-rw-r--r-- | .github/CONTRIBUTING.md (renamed from CONTRIBUTING.md) | 0 | ||||
-rw-r--r-- | .github/workflows/ci.yml | 50 | ||||
-rw-r--r-- | .travis.yml | 11 |
5 files changed, 62 insertions, 11 deletions
diff --git a/CODEOWNERS b/.github/CODEOWNERS index 442e08d9..1693b82c 100644 --- a/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,3 +1,12 @@ +# ------------------------------------------------- +# CODEOWNERS - For automated review request for +# high impact files. +# +# Important: The order in this file cascades. +# +# https://help.github.com/articles/about-codeowners +# ------------------------------------------------- + # Lines starting with '#' are comments. # Each line is a file pattern followed by one or more owners. # Owners of code are automatically nominated to review PRs involving that code. @@ -60,7 +69,8 @@ tests/test_transcript.py @kotfu tests_isolated/test_commandset/* @anselor # Top-level project stuff -CONTRIBUTING.md @tleonhardt @kotfu setup.py @tleonhardt @kotfu tasks.py @kotfu +# GitHub stuff +.github/* @tleonhardt diff --git a/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md index bdd7a3e3..bdd7a3e3 100644 --- a/CODE_OF_CONDUCT.md +++ b/.github/CODE_OF_CONDUCT.md diff --git a/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 1175618a..1175618a 100644 --- a/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..f8aedfb2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,50 @@ +name: CI + +on: + push: + branches: + - master + - 2.0 + pull_request: + branches: + - master + - 2.0 + +env: + PYTHON_LATEST: 3.9 + +jobs: + ci: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + python-version: [3.5, 3.6, 3.7, 3.8, 3.9, 3.10-dev] + fail-fast: false + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Cache dependencies + id: cache-deps + uses: actions/cache@v2 + with: + path: | + ${{ env.pythonLocation }}/bin/* + ${{ env.pythonLocation }}/lib/* + ${{ env.pythonLocation }}/scripts/* + key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.py', 'requirements.txt') }} + - name: Install python prerequisites + if: steps.cache-deps.outputs.cache-hit != 'true' + run: | + pip install -Ur pip install flake8 nox + python setup.py develop + - name: Lint + if: matrix.os == 'ubuntu-latest' && matrix.python-version == env.PYTHON_LATEST + run: flake8 . --count --ignore=E252,W503 --max-complexity=26 --max-line-length=127 --show-source --statistics ; + - name: Run tests and post coverage results + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: nox --non-interactive diff --git a/.travis.yml b/.travis.yml index 6a9cdac2..05bc521e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,15 +3,6 @@ language: python matrix: include: - os: linux - python: 3.5.2 - env: NOXSESSION=tests-3.5.2 - - os: linux - python: 3.5.3 - env: NOXSESSION=tests-3.5.3 - - os: linux - python: 3.5 - env: NOXSESSION=tests-3.5 - - os: linux python: 3.6 env: NOXSESSION=tests-3.6 - os: linux @@ -27,7 +18,7 @@ matrix: dist: xenial env: NOXSESSION=tests-3.9 - os: linux - python: 3.7 + python: 3.8 env: NOXSESSION=docs # # Warning: Don't try to use code coverage analysis with pypy as it is insanely slow # - os: linux |