Skip to content

Commit

Permalink
Merge pull request #30 from ycharts/github_actions
Browse files Browse the repository at this point in the history
Github Actions
  • Loading branch information
KFoxder authored Mar 23, 2021
2 parents 068d8d3 + 3c5e85f commit f3de37f
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 30 deletions.
7 changes: 7 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Overview
A few sentences or bullet points describing the overall goals and what changed.

### How to test
- [ ] Step 1 to test the changes you made
- [ ] Step 2 to test the changes you made

18 changes: 18 additions & 0 deletions .github/workflows/canceller.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Cancelling Duplicates
on:
workflow_run:
workflows:
- "Test Suite"
types: [ "requested" ]

jobs:
cancel-duplicate-workflow-runs:
name: "Cancel duplicate workflow runs"
runs-on: ubuntu-latest
steps:
- uses: potiuk/cancel-workflow-runs@master
name: "Cancel duplicate workflow runs"
with:
cancelMode: allDuplicates
token: ${{ secrets.GITHUB_TOKEN }}
sourceRunId: ${{ github.event.workflow_run.id }}
71 changes: 71 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Test Suite # IMPORTANT: If this name changes you need to update the canceller.yml

# Controls when the action will run.
on:
# Triggers the workflow on push for the master branch.
push:
branches: [ master ]

# Triggers the workflow on pull request for any branch.
pull_request:

# Allows you to run this workflow manually from the Actions tab.
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-18.04
services:
redis:
image: redis
ports:
- 6379:6379
# Set health checks to wait until redis has started
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
strategy:
matrix:
python-version: [ 2.7, 3.4, 3.5, 3.6, 3.7 ]
django-version: [ 1.8.*, 1.9.*, 1.10.*, 1.11.*, 2.0.*, 2.1.*, 2.2.*, 3.0.* ]
exclude:
- python-version: 2.7
django-version: 2.0.*
- python-version: 2.7
django-version: 2.1.*
- python-version: 2.7
django-version: 2.2.*
- python-version: 2.7
django-version: 3.0.*
- python-version: 3.4
django-version: 2.1.*
- python-version: 3.4
django-version: 2.2.*
- python-version: 3.4
django-version: 3.0.*
- python-version: 3.5
django-version: 3.0.*
steps:
# Checks-out the repository.
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r dev_requirements.txt
pip install -q Django==${{ matrix.django-version }}
- name: Install Cache Helper Package
run: pip install -e .

- name: Run tests
run: python manage.py test
working-directory: ./test_project
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

setup(
name='django-autocompleter',
version="0.10.0",
version='0.10.0',
description='A redis-backed autocompletor for Django projects',
author='Ara Anjargolian',
author_email='[email protected]',
url='http://github.com/ara818/django-autocompleter',
url='http://github.com/ycharts/django-autocompleter',
packages=['autocompleter', 'autocompleter.management', 'autocompleter.management.commands'],
install_requires=['setuptools', 'redis'],
classifiers=[
Expand Down

0 comments on commit f3de37f

Please sign in to comment.