Yolotry to replace travis tests with github action

This commit is contained in:
Alexandre Aubin 2021-08-20 10:38:15 +02:00
parent 9b8f18b116
commit bdc918ed72
2 changed files with 26 additions and 24 deletions

26
.github/workflow/tox.yml vendored Normal file
View file

@ -0,0 +1,26 @@
name: Run tests for Moulinette
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.9]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
apt install ldap-utils slapd
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
run: tox

View file

@ -1,24 +0,0 @@
language: python
addons:
apt:
packages:
- ldap-utils
- slapd
matrix:
include:
- python: 3.7
env: TOXENV=py37-pytest
- python: 3.7
env: TOXENV=py37-lint
- python: 3.7
env: TOXENV=format-check
- python: 3.7
env: TOXENV=docs
install:
- pip install tox
script:
- tox