1
0
mirror of https://github.com/fedora-python/tox-current-env.git synced 2024-12-24 00:56:16 +01:00

Switch CI to the fedora-python Tox GitHub action

https://github.com/fedora-python/tox-current-env/pull/28
This commit is contained in:
Petr Viktorin 2020-08-12 16:28:20 +02:00 committed by GitHub
parent 2e513fe88f
commit 2b89732d65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 38 additions and 29 deletions

35
.github/workflows/main.yaml vendored Normal file
View File

@ -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

View File

@ -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

View File

@ -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"]

View File

@ -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]