diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml new file mode 100644 index 0000000..af39ac3 --- /dev/null +++ b/.github/workflows/python-package.yml @@ -0,0 +1,34 @@ +# This workflow will install Python dependencies then run the tests on multiple Python versions +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Python package + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.7", "3.12"] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: tests + run: | + python tests/suite.py + PYTHONPATH=$(pwd):$PYTHONPATH python s2protocol/s2_cli.py --all --ndjson --profile tests/s2replaystatsdata/2018_05_17_Z_Raphtor_VS_T_Tocon.SC2Replay diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 68060d4..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: python -python: - - "2.7" - - "3.6" -matrix: - include: - - python: 3.7 - dist: xenial - sudo: true -# command to install dependencies -install: - - pip install tox-travis -# command to run tests -script: - - tox diff --git a/setup.py b/setup.py index 0a1a5ae..fed0406 100644 --- a/setup.py +++ b/setup.py @@ -6,9 +6,6 @@ install_requires = [ 'mpyq >= 0.2.2', ] -tests_require = [ - 'tox', -] if sys.version_info < (2, 7): install_requires.append('argparse') @@ -39,9 +36,6 @@ 'Topic :: System :: Archiving', ], install_requires=install_requires, - extras_require={ - 'tests': tests_require, - }, entry_points={ 'console_scripts': [ 's2protocol = s2protocol.s2protocol:main', diff --git a/tox.ini b/tox.ini deleted file mode 100644 index 733278a..0000000 --- a/tox.ini +++ /dev/null @@ -1,12 +0,0 @@ -[tox] -envlist = {py27,py36,py37}-{cli,suite} - -[base] -deps=-e .[tests] - -[testenv] -deps= - {[base]deps} -commands= - suite: python tests/suite.py - cli: s2_cli.py --all --ndjson --profile tests/s2replaystatsdata/2018_05_17_Z_Raphtor_VS_T_Tocon.SC2Replay