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
29 changes: 29 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python application

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry tox
poetry install
- name: Run Tox
run: tox
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: python
python:
# - "2.7" <- Unsupported, uses 2.7.9 ?
- "3.6"
- "3.8"
# PyPy versions
# - "pypy" # PyPy2 2.5.0
# - "pypy3" # Pypy3 2.4.0
Expand Down
2 changes: 1 addition & 1 deletion tests/api/test_symbolTable.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import unittest
from unittest import TestCase
from six import StringIO
from io import StringIO

from src.api.symboltable import SymbolTable
from src.api.constants import TYPE
Expand Down
2 changes: 1 addition & 1 deletion tests/arch/zx48k/optimizer/test_optimizer_asm.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def test_raises_error_on_empty_instruction(self):

def test_unknown_instruction(self):
a = asm.Asm(' unknown instr ')
self.assertEqual(a.bytes, ())
self.assertEqual((), a.bytes)

def test_simplify_arg(self):
a = helpers.simplify_asm_args('ld a, (126 - 1)')
Expand Down
2 changes: 1 addition & 1 deletion tests/symbols/test_symbolARRAYACCESS.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-

from unittest import TestCase
from six import StringIO
from io import StringIO

from src import symbols
import src.api.global_ as gl
Expand Down
2 changes: 1 addition & 1 deletion tests/symbols/test_symbolBINARY.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-

from unittest import TestCase
from six import StringIO
from io import StringIO

from src.api.config import OPTIONS
from src import symbols
Expand Down
2 changes: 1 addition & 1 deletion tests/symbols/test_symbolBOUND.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import unittest
from unittest import TestCase
from six import StringIO
from io import StringIO

from src.api.config import OPTIONS
from src import symbols
Expand Down
3 changes: 2 additions & 1 deletion tests/symbols/test_symbolTYPECAST.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from unittest import TestCase
from io import StringIO

from src.symbols import TYPECAST
from src.symbols import NUMBER
from src.symbols import VAR
from src.symbols.type_ import Type
from src.api.config import OPTIONS
from six import StringIO
from src.api.constants import CLASS
from src.libzxbpp import zxbpp

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ commands = flake8

[travis]
python =
3.6: py36, flake8
3.8: py38, flake8

[pytest]
norecursedirs = test_*tmp runtime