diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 5e9f587..7204f9e 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -1,17 +1,56 @@ name: Main workflow -on: [push] + +on: + push: + paths-ignore: + - 'doc/**' + - '**/*.md' + - 'LICENSE' + - 'example/**' + - '.gitignore' + workflow_dispatch: + pull_request: + paths-ignore: + - 'doc/**' + - '**/*.md' + - 'LICENSE' + - 'example/**' + - '.gitignore' + + jobs: - build: - runs-on: ubuntu-16.04 + linux-validate: + name: Validate on Linux - Python ${{ matrix.python }} + runs-on: ubuntu-20.04 strategy: matrix: - python: [ '2.x', '3.x', 'pypy3' ] - name: Python ${{ matrix.python }} Testing + python: [ '3.6', '3.8', '3.12' ] steps: - - uses: actions/checkout@master + - uses: actions/checkout@v4 + - name: Setup python - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} architecture: x64 - - run: python tests/run_tests.py \ No newline at end of file + + - name: Run tests + run: python tests/run_tests.py + + windows-validate: + name: Validate on Windows - Python ${{ matrix.python }} + runs-on: windows-latest + strategy: + matrix: + python: [ '3.6', '3.8', '3.12' ] + steps: + - uses: actions/checkout@v4 + + - name: Setup python + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python }} + architecture: x64 + + - name: Run tests + run: python tests/run_tests.py diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 73e0234..0000000 --- a/.travis.yml +++ /dev/null @@ -1,42 +0,0 @@ -stages: - - test - - name: deploy - if: tag IS present - -language: python - -install: - - pip install coverage -script: - # run tests and report coverage - - coverage run tests/run_tests.py - - coverage report -m --omit=tests/run_tests.py - -jobs: - include: - - stage: test - python: 2.7 - - python: 3.4 - - python: 3.5 - - python: 3.6 - - python: 3.7 - - python: 3.8 - - stage: deploy - install: - script: - - "PACKAGE_VERSION=$(cat patch_ng.py | grep __version__ | head -1 | awk -F= '{ print $2 }' | sed 's/[ \",]//g')" - - echo "Deploying library version '$PACKAGE_VERSION'" - - echo "Tagged in repo as '$TRAVIS_TAG'" - - | - if [ "$PACKAGE_VERSION" != "$TRAVIS_TAG" ]; then - echo "Library version and tag name mismatch!" - travis_terminate 1 - fi - - deploy: - provider: pypi - user: "__token__" - password: - secure: "xQjEWfYtAHiFDMVxn7WeodCX3OiboVrJnaLQTk9EiZEHXmLViA0BknyuNR5MVYwv+mIeWKU70scPgzhMw7Dn6A6o/NVFdJIXmUkxttWMTLia0uPyhfFDSefFH2dRECU2vo4fIgWxBzDKGsNYtHDHjvsIRTl9PsWwBKYaKNl+w6einTUNwTyQvMdpQjQ/VV3dQnMQqc86LkDXpAhNVHFe+cbA+phk8WGrsamlyd+vEJ7xgNSotNp0405IPbXLSxC7wo5qAfKgeIjXwHN6OV1IcbKiUGD9iw0QUKme3Gqmr4kNC+9eQQ+SrOv1Crpmsa8/q7F3ECvJ/NVAzzJ7/ZiMdkhfumzn8J9tvOdjQ6lx78it0xToL2h5tmN3gClyawrA/0VUzLDih7UjFTkolGVXAoZzqiBJdb5NLS06JlGp01c9cxotqeAdylHRptx5ovrYZsf7GHjXYvxg/ry9SjyQN0hb3l62WQCilqf4DX2iEgDHQX6ushvpHmNQseQCti4gvsMj8CQkhhK2PASB6cHsQ1GZXFdQ0QtQ1nw6mI461iiF0xDNfRQuRFSf8tmnhdgqC9s7yfI+vD1uN3mVnIP0j+B6G0DTvjOcI+vasWcbQSrwRdBFl9e/Gjlu26jEaxmPWDCH/FvLmDFRlVSOibGBL4MZPvUJGMMNlMm+N2pBta0=" - on: - tags: true diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 1d79ca1..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,24 +0,0 @@ -build: false - -environment: - - matrix: - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 - PYTHON: "C:\\Python27" - PYTHON_ARCH: "32" - PYTHON_VERSION: "2.7.x" - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 - PYTHON: "C:\\Python27-x64" - PYTHON_ARCH: "64" - PYTHON_VERSION: "2.7.x" - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 - PYTHON: "C:\\Python38" - PYTHON_ARCH: "32" - PYTHON_VERSION: "3.8.x" - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 - PYTHON: "C:\\Python38-x64" - PYTHON_ARCH: "64" - PYTHON_VERSION: "3.8.x" - -test_script: -- python tests/run_tests.py \ No newline at end of file