diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..4f68faa --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,23 @@ +name: Lint + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.7 + + - name: Install dependencies + run: | + python -m pip install pipenv + pipenv install --dev --system + + - name: Lint + run: pre-commit run --all-files --show-diff-on-failure diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..f4f8e6a --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,31 @@ +name: Test + +on: [push, pull_request] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: [3.6, 3.7, 3.8] + os: [ubuntu-latest, macos-latest, windows-latest] + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install pipenv + pipenv install --dev --system + + - name: Tests + run: | + python --version + pytest + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 67ba620..0000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -# travis use trusty by default -dist: xenial - -language: python -python: - - 3.6 - - 3.7 - - 3.8 - -# command to install dependencies -install: - - pip install pipenv --upgrade-strategy=only-if-needed - - pipenv install --dev - -# command to run the dependencies -script: - - black responder tests setup.py --check - - pytest