diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..e05d8e9e --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,26 @@ +name: Python package + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, pypy2, pypy3] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip wheel + pip install --upgrade --upgrade-strategy only-if-needed pytest pytest-catchlog + pip install . + - name: Test with pytest + run: | + pytest diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c1804a57..00000000 --- a/.travis.yml +++ /dev/null @@ -1,37 +0,0 @@ -language: python - -os: linux - -dist: xenial - -python: - - 2.7 - - 3.5 - - 3.6 - - 3.7 - - 3.8 - - 3.9 - - pypy - - pypy3 - -cache: - directories: - - $HOME/.hypothesis - -env: - global: - - HYPOTHESIS_STORAGE_DIRECTORY=$HOME/.hypothesis - -install: - - travis_retry pip install --upgrade pip - - travis_retry pip install --upgrade --upgrade-strategy only-if-needed pytest pytest-catchlog - - pip install . - -# Run test -script: - - py.test - -notifications: - email: - on_success: change - on_failure: always