Skip to content

Commit 3cee272

Browse files
committed
test: Add CI
1 parent 75f6421 commit 3cee272

File tree

7 files changed

+97
-0
lines changed

7 files changed

+97
-0
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: daily

.github/workflows/test.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
test:
16+
runs-on: ${{ matrix.os }}
17+
continue-on-error: ${{ matrix.experimental }}
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
os: [ubuntu-latest, macos-latest, windows-latest]
22+
emacs-version:
23+
- 26.3
24+
- 27.2
25+
- 28.2
26+
- 29.1
27+
experimental: [false]
28+
include:
29+
- os: ubuntu-latest
30+
emacs-version: snapshot
31+
experimental: true
32+
- os: macos-latest
33+
emacs-version: snapshot
34+
experimental: true
35+
- os: windows-latest
36+
emacs-version: snapshot
37+
experimental: true
38+
39+
steps:
40+
- uses: actions/checkout@v3
41+
42+
- uses: jcs090218/setup-emacs@master
43+
with:
44+
version: ${{ matrix.emacs-version }}
45+
46+
- uses: emacs-eask/setup-eask@master
47+
with:
48+
version: 'snapshot'
49+
50+
- name: Run tests
51+
run:
52+
make ci

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
*~
22
.cask/
3+
.eask/
4+
/dist
35
testproject/
46
.tox/
57
*.elc

Eask

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
(package "djangonaut"
2+
"0.0.1"
3+
"Minor mode to interact with Django projects")
4+
5+
(website-url "https://github.com/proofit404/djangonaut")
6+
(keywords "convenience" "django")
7+
8+
(package-file "djangonaut.el")
9+
10+
(script "test" "echo \"Error: no test specified\" && exit 1")
11+
12+
(source 'gnu)
13+
(source 'melpa)
14+
15+
(depends-on "magit-popup")
16+
(depends-on "pythonic")
17+
(depends-on "f")
18+
(depends-on "s")
19+
20+
(development
21+
(depends-on "cask")
22+
(depends-on "docker-tramp")
23+
(depends-on "gif-screencast")
24+
(depends-on "ert-runner")
25+
(depends-on "zenburn-theme")
26+
(depends-on "helm"))
27+
28+
(setq network-security-level 'low) ; see https://github.com/jcs090218/setup-emacs-windows/issues/156#issuecomment-932956432

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,9 @@ ${MANAGE_PY}:
2626
test -n "${ENVSITEPACKAGESDIR}"
2727
env -u DJANGO_SETTINGS_MODULE django-admin startproject testproject ${ENVSITEPACKAGESDIR}
2828
touch $@
29+
30+
ci:
31+
eask clean all
32+
eask package
33+
eask install
34+
eask compile

README.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Emacs minor mode for Django.
44

5+
[![MELPA](https://melpa.org/packages/djangonaut-badge.svg)](https://melpa.org/#/djangonaut)
6+
57
This package is based on the introspection of your Django project. It
68
executes Python code to get all necessary information about model,
79
views, and templates inside `INSTALLED_APPS`. Works the same way for

djangonaut.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
;; URL: https://github.com/proofit404/djangonaut
77
;; Version: 0.0.1
88
;; Package-Requires: ((emacs "25.2") (magit-popup "2.6.0") (pythonic "0.1.0") (f "0.20.0") (s "1.12.0"))
9+
;; Keywords: convenience django
910

1011
;; This program is free software; you can redistribute it and/or modify
1112
;; it under the terms of the GNU General Public License as published by

0 commit comments

Comments
 (0)