diff --git a/.github/workflows/ci-gh-actions.yml b/.github/workflows/ci-gh-actions.yml index 98548c6..2d4f3e8 100644 --- a/.github/workflows/ci-gh-actions.yml +++ b/.github/workflows/ci-gh-actions.yml @@ -1,16 +1,26 @@ name: PyInstance CI -on: [ push ] +on: + push: + branches: ['*master'] + pull_request: + branches: ['*master'] jobs: build: runs-on: ubuntu-latest strategy: + fail-fast: true matrix: python-version: [3.6, 3.7, 3.8, 3.9] steps: - uses: actions/checkout@v2 + with: + ref: ${{ github.event.pull_request.head.sha }} + if: ${{ github.event_name }} == 'pull_request' + - uses: actions/checkout@v2 + if: ${{ github.event_name }} != 'pull_request' - name: Setup Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7cc6816..0000000 --- a/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -language: python -matrix: - include: - - python: "2.7" - env: TEST_SUITE=suite_2_7 TOX_ENV=py27 - - python: "3.4" - env: TEST_SUITE=suite_3_4 TOX_ENV=py34 - - python: "3.5" - env: TEST_SUITE=suite_3_5 TOX_ENV=py35 - - python: "3.4" - env: TEST_SUITE=suite_3_4 TOX_ENV=pep8 - -before_install: - - sudo apt-get install build-essential python-dev - -install: pip install tox setuptools virtualenv coveralls --upgrade - -script: tox -v -e $TOX_ENV -- -v - -after_success: coveralls - -notifications: - email: - - bm_witness@yahoo.com -