Skip to content

Commit

Permalink
Merge pull request #26 from clokep/github-actions
Browse files Browse the repository at this point in the history
Setup GitHub actions.
  • Loading branch information
clokep authored Feb 5, 2021
2 parents 18a6a14 + 5d169d6 commit f376cf9
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 17 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

workflow_dispatch:

jobs:
tests:
name: "Python ${{ matrix.python-version }}"
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.6", "3.7", "3.8"]

steps:
- uses: actions/checkout@v2

- uses: "actions/setup-python@v2"
with:
python-version: "${{ matrix.python-version }}"

- name: "Install dependencies"
run: |
set -xe
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade tox
- name: "Run tox targets for ${{ matrix.python-version }}"
env:
TOX_SKIP_ENV: ".*djangomaster.*"
run: "python -m tox"

- name: "Run tox targets for ${{ matrix.python-version }} for django master"
env:
TOX_SKIP_ENV: ".*django[^m].*"
run: "python -m tox"
continue-on-error: true
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

0 comments on commit f376cf9

Please sign in to comment.