Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<!-- add an 'x' in the brackets below -->
[] I have added an entry to `docs/changelog.md`

<!-- provide evidence of testing, preferably with command(s) that can be copy+pasted by others -->
## Summary of changes

## Test plan
<!-- provide evidence of testing, preferably with command(s) that can be copy+pasted by others -->
Tested by running
```
# command(s) to exercise these changes
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/build_executable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build native gdbgui executables

on:
pull_request:
push:
branches:
- master
release:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.8]
include:
- os: ubuntu-latest
buildname: linux
- os: windows-latest
buildname: windows
- os: macos-latest
buildname: mac
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install nox
- name: Compile ${{ matrix.buildname }} gdbgui executable
run: |
nox --non-interactive --session build_executable_${{ matrix.buildname }}
- name: Upload ${{ matrix.buildname }} executable
if: github.ref == 'refs/heads/master'
uses: actions/upload-artifact@v1
with:
name: gdbgui_${{ matrix.buildname }}
path: ./executable/${{ matrix.buildname }}
70 changes: 0 additions & 70 deletions .github/workflows/release.yml

This file was deleted.

67 changes: 67 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions

name: CI tests

on:
pull_request:
push:
branches:
- master
release:

jobs:
run_tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install nox
- name: Install gdb ubuntu
run: |
sudo apt-get install gdb
- name: Execute Tests
run: |
nox --non-interactive --session tests-${{ matrix.python-version }}

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install nox
- name: Lint
run: |
nox --non-interactive --session lint

docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install nox
- name: Verify Docs
run: |
nox --non-interactive --session docs
40 changes: 0 additions & 40 deletions .travis.yml

This file was deleted.

13 changes: 7 additions & 6 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def cover(session):
session.run("coverage", "erase")


@nox.session(python="3.7")
@nox.session
def lint(session):
session.run(
"npx",
Expand All @@ -63,7 +63,7 @@ def lint(session):
session.run("python", "setup.py", "check", "--metadata", "--strict")


@nox.session(python="3.7")
@nox.session
def autoformat(session):
session.install("black")
session.run("black", *files_to_lint)
Expand All @@ -78,7 +78,7 @@ def autoformat(session):
)


@nox.session(python="3.7")
@nox.session
def docs(session):
session.install(*doc_dependencies)
session.run("mkdocs", "build")
Expand All @@ -93,6 +93,7 @@ def develop(session):
session.log("To use, run: '%s'", command)


@nox.session
def build(session):
session.install("setuptools", "wheel", "twine")
session.run("rm", "-rf", "dist", external=True)
Expand All @@ -101,20 +102,20 @@ def build(session):
session.run("twine", "check", "dist/*")


@nox.session(python="3.7")
@nox.session
def publish(session):
build(session)
print("REMINDER: Has the changelog been updated?")
session.run("python", "-m", "twine", "upload", "dist/*")


@nox.session(python="3.7")
@nox.session
def watch_docs(session):
session.install(*doc_dependencies)
session.run("mkdocs", "serve")


@nox.session(python="3.7")
@nox.session
def publish_docs(session):
session.install(*doc_dependencies)
session.run("mkdocs", "gh-deploy")
Expand Down