mirror of
https://github.com/fedora-python/tox-current-env.git
synced 2024-12-23 16:46:14 +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:
parent
2e513fe88f
commit
2b89732d65
35
.github/workflows/main.yaml
vendored
Normal file
35
.github/workflows/main.yaml
vendored
Normal 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
|
17
.travis.yml
17
.travis.yml
@ -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
|
12
Dockerfile
12
Dockerfile
@ -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"]
|
Loading…
Reference in New Issue
Block a user