diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..2b997fe --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +on: + push: + branches: + - master + - ci-test + pull_request: + branches: + - master + +name: Run Tox tests + +jobs: + tox_test: + name: Tox test + steps: + - uses: actions/checkout@v2 + - name: Run Tox tests + id: test + uses: fedora-python/tox-github-action@master + with: + tox_env: ${{ matrix.tox_env }} + dnf_install: /usr/bin/make + strategy: + matrix: + tox_env: [ + py27-c90, py35-c90, py36-c90, + py27-c99, py35-c99, py36-c99, py37-c99, py38-c99, py39-c99, py310-c99, + py27-c90, py35-cpp, py36-cpp, py37-cpp, py38-cpp, py39-cpp, py310-cpp, + ] + + # Use GitHub's Linux Docker host + runs-on: ubuntu-latest diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 63c3b23..0000000 --- a/.travis.yml +++ /dev/null @@ -1,33 +0,0 @@ -language: python -arch: - - amd64 - - ppc64le -python: - - "2.7" - - "3.4" - - "3.5" - - "3.5" - - "3.6" - - "3.7" - - "3.8" - - "3.9" - - "nightly" - -env: - - TEST_USE_CPP=no CFLAGS="-Werror -Wall -std=c90 -Wno-error=strict-aliasing" - - TEST_USE_CPP=no CFLAGS="-Werror -Wall -std=c99 -Wno-error=strict-aliasing" - - TEST_USE_CPP=yes CFLAGS="-Werror -Wall -Wno-error=strict-aliasing" - -matrix: - exclude: - # CPython 3.8+ won't compile with c90. - - python: "3.8" - env: TEST_USE_CPP=no CFLAGS="-Werror -Wall -std=c90 -Wno-error=strict-aliasing" - - python: "3.9" - env: TEST_USE_CPP=no CFLAGS="-Werror -Wall -std=c90 -Wno-error=strict-aliasing" - - python: "nightly" - env: TEST_USE_CPP=no CFLAGS="-Werror -Wall -std=c90 -Wno-error=strict-aliasing" - -script: make test-python - -sudo: false