Skip to content

Commit a016d47

Browse files
authored
Merge pull request #429 from boriel/feature/add-github-action
Create a python-app.yml
2 parents b7b1030 + 39efc37 commit a016d47

9 files changed

Lines changed: 38 additions & 8 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Python application
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up Python 3.8
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: 3.8
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install poetry tox
27+
poetry install
28+
- name: Run Tox
29+
run: tox

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: python
22
python:
33
# - "2.7" <- Unsupported, uses 2.7.9 ?
4-
- "3.6"
4+
- "3.8"
55
# PyPy versions
66
# - "pypy" # PyPy2 2.5.0
77
# - "pypy3" # Pypy3 2.4.0

tests/api/test_symbolTable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import unittest
55
from unittest import TestCase
6-
from six import StringIO
6+
from io import StringIO
77

88
from src.api.symboltable import SymbolTable
99
from src.api.constants import TYPE

tests/arch/zx48k/optimizer/test_optimizer_asm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def test_raises_error_on_empty_instruction(self):
1616

1717
def test_unknown_instruction(self):
1818
a = asm.Asm(' unknown instr ')
19-
self.assertEqual(a.bytes, ())
19+
self.assertEqual((), a.bytes)
2020

2121
def test_simplify_arg(self):
2222
a = helpers.simplify_asm_args('ld a, (126 - 1)')

tests/symbols/test_symbolARRAYACCESS.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- coding: utf-8 -*-
33

44
from unittest import TestCase
5-
from six import StringIO
5+
from io import StringIO
66

77
from src import symbols
88
import src.api.global_ as gl

tests/symbols/test_symbolBINARY.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- coding: utf-8 -*-
33

44
from unittest import TestCase
5-
from six import StringIO
5+
from io import StringIO
66

77
from src.api.config import OPTIONS
88
from src import symbols

tests/symbols/test_symbolBOUND.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import unittest
55
from unittest import TestCase
6-
from six import StringIO
6+
from io import StringIO
77

88
from src.api.config import OPTIONS
99
from src import symbols

tests/symbols/test_symbolTYPECAST.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
3+
34
from unittest import TestCase
5+
from io import StringIO
46

57
from src.symbols import TYPECAST
68
from src.symbols import NUMBER
79
from src.symbols import VAR
810
from src.symbols.type_ import Type
911
from src.api.config import OPTIONS
10-
from six import StringIO
1112
from src.api.constants import CLASS
1213
from src.libzxbpp import zxbpp
1314

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ commands = flake8
3838

3939
[travis]
4040
python =
41-
3.6: py36, flake8
41+
3.8: py38, flake8
4242

4343
[pytest]
4444
norecursedirs = test_*tmp runtime

0 commit comments

Comments
 (0)