Skip to content

Commit

Permalink
Merge pull request pinterest#35 from pinterest/jogo-patch-1
Browse files Browse the repository at this point in the history
Move to github actions for CI
  • Loading branch information
jogo authored Jul 16, 2020
2 parents f614b64 + b8e45dc commit 319efa4
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

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

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, pypy2, pypy3]

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 Tox and any other packages
run: pip install tox
- name: Lint
if: matrix.python-version == '2.7' || matrix.python-version == '3.7'
run: |
pip install flake8
flake8 git_stacktrace
- name: Run Tests via Tox
# Run tox using the version of Python in `PATH`
run: tox -e py
2 changes: 1 addition & 1 deletion git_stacktrace/parse_trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def extract_traceback(self, lines):
self.lines = extracted
# Sanity check
new_lines = traceback.format_list(self.traceback_format())
new_lines = ('\n'.join([l.rstrip() for l in new_lines]))
new_lines = ('\n'.join([line.rstrip() for line in new_lines]))
lines = ('\n'.join(lines))
if lines != new_lines or not self.lines:
message = "Incorrectly extracted traceback information"
Expand Down

0 comments on commit 319efa4

Please sign in to comment.