Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Github Actions CI #14

Merged
merged 18 commits into from
Jan 8, 2023
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
publish:
palfrey marked this conversation as resolved.
Show resolved Hide resolved
runs-on: ubuntu-20.04 # 22.04 doesn't have Python 3.6
strategy:
fail-fast: false
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
palfrey marked this conversation as resolved.
Show resolved Hide resolved
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pipenv'

- name: Install Pipenv requirements
run: |
pip install --upgrade pip
pip install pipenv
pipenv install --dev --deploy

- name: Black
run: pipenv run black --check django_filters-stubs/

- name: isort
run: pipenv run isort --check

- name: flake8
run: pipenv run flake8

- name: pytest
run: pipenv run pytest
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

7 changes: 2 additions & 5 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@ url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
black = "==19.10b0"
black = "==22.12.0"
flake8 = "*"
isort = "*"
pytest-mypy-plugins = "*"

[packages]
django-filter-stubs = {editable = true,path = "."}

[requires]
python_version = "3.7"
django-filter-stubs = {editable = true,path = "."}
75 changes: 68 additions & 7 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PEP-484 Stubs for django-filter ::: Beta

[![Build Status](https://travis-ci.org/DavisRayM/django-filter-stubs.svg?branch=master)](https://travis-ci.org/DavisRayM/django-filter-stubs)
[![CI](https://github.com/DavisRayM/django-filter-stubs/actions/workflows/ci.yml/badge.svg)](https://github.com/DavisRayM/django-filter-stubs/actions/workflows/ci.yml)
[![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)

This package contains type subs to provide more precise static types for Django Filters.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
from pathlib import Path

from setuptools import setup
from pathlib import Path

name = "django-filter-stubs"

Expand Down