diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..0a601e6 --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,35 @@ +on: + push: + pull_request: + +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 }} + strategy: + matrix: + tox_env: + # This information is repeated in tox.ini + # (see https://github.com/fedora-python/tox-github-action/issues/8) + - py36-tox35 + - py37-tox35 + - py38-tox35 + + - py36-toxrelease + - py37-toxrelease + - py38-toxrelease + + - py36-toxmaster + - py37-toxmaster + - py38-toxmaster + + # Use GitHub's Linux Docker host + runs-on: ubuntu-latest diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2da1bd5..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: generic - -services: - - docker - -env: - - FEDORA=29 - - FEDORA=30 - - FEDORA=31 - - FEDORA=rawhide - -install: - - sed -i "s|FROM fedora|FROM registry.fedoraproject.org/fedora:${FEDORA}|" Dockerfile - - docker build -t tox-current-env . - -script: - - docker run -v $(pwd):$(pwd) -w $(pwd) -i -t tox-current-env diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index f530bda..0000000 --- a/Dockerfile +++ /dev/null @@ -1,12 +0,0 @@ -FROM fedora - -RUN dnf -y install --setopt=install_weak_deps=false --setopt=tsflags=nodocs \ - --setopt=deltarpm=false --allowerasing --best --disablerepo=\*modular \ - tox python36 python37 python38 git-core && \ - dnf -y --setopt=install_weak_deps=false --setopt=tsflags=nodocs --best\ - --setopt=deltarpm=false --allowerasing --disablerepo=\*modular update && \ - dnf clean all - -ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 - -CMD ["/usr/bin/tox"] diff --git a/tox.ini b/tox.ini index 8dc8499..26e8b3c 100644 --- a/tox.ini +++ b/tox.ini @@ -1,4 +1,7 @@ [tox] + +# This information is repeated in .github/workflows/main.yaml +# (see https://github.com/fedora-python/tox-github-action/issues/8) envlist = {py36,py37,py38}-tox{35,release,master} [testenv]