2020-12-01 10:02:31 +00:00
|
|
|
name: Test Supported Distributions
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [opened, synchronize, reopened, ready_for_review]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
distro-test:
|
|
|
|
if: github.event.pull_request.draft == false
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-12-01 10:09:16 +00:00
|
|
|
distro: [debian_9, debian_10, ubuntu_16, ubuntu_18, ubuntu_20, centos_7, centos_8, fedora_31, fedora_32]
|
2020-12-01 10:02:31 +00:00
|
|
|
env:
|
2020-12-01 10:09:16 +00:00
|
|
|
DISTRO: ${{matrix.distro}}
|
|
|
|
steps:
|
2020-12-01 10:02:31 +00:00
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Set up Python 3.7
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: 3.7
|
|
|
|
- name: Install dependencies
|
|
|
|
run: pip install -r test/requirements.txt
|
|
|
|
- name: Test with tox
|
|
|
|
run: tox -c test/tox.${DISTRO}.ini
|