Skip to content

Commit ed50cd3

Browse files
committed
Replace Travis with GitHub Actions
1 parent f8e49ca commit ed50cd3

File tree

3 files changed

+56
-35
lines changed

3 files changed

+56
-35
lines changed

.github/workflows/tests.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: CI Testing
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
push:
7+
branches:
8+
- master
9+
10+
jobs:
11+
test:
12+
name: "Python ${{ matrix.python }} Django ${{ matrix.django }}"
13+
runs-on: ubuntu-latest
14+
strategy:
15+
# max-parallel: 8 # default is max available
16+
fail-fast: false
17+
matrix:
18+
include:
19+
# Django 2.2
20+
- django: "2.2"
21+
python: "3.6"
22+
# Django 3.1
23+
- django: "3.1"
24+
python: "3.6"
25+
# Django 3.2
26+
- django: "3.2"
27+
python: "3.6"
28+
# Django 4.0
29+
- django: "4.0b1"
30+
python: "3.10"
31+
32+
steps:
33+
- name: Install gettext
34+
run: sudo apt-get install -y gettext
35+
36+
- name: Checkout code
37+
uses: actions/checkout@v2
38+
39+
- name: Setup Python ${{ matrix.python }}
40+
uses: actions/setup-python@v2
41+
with:
42+
python-version: ${{ matrix.python }}
43+
44+
- name: Install Packages
45+
run: |
46+
python -m pip install -U pip
47+
python -m pip install "Django~=${{ matrix.django }}" codecov -e .[tests]
48+
49+
- name: Run Tests
50+
run: |
51+
echo "Python ${{ matrix.python }} / Django ${{ matrix.django }}"
52+
coverage run --rcfile=.coveragerc runtests.py
53+
codecov
54+
continue-on-error: ${{ contains(matrix.django, '4.0') }}

.travis.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ django-fluent-pages
99
.. image:: http://unmaintained.tech/badge.svg
1010
:target: http://unmaintained.tech
1111
:alt: No Maintenance Intended
12-
.. image:: https://img.shields.io/travis/django-fluent/django-fluent-pages/master.svg?branch=master
13-
:target: http://travis-ci.org/django-fluent/django-fluent-pages
12+
.. image:: https://github.com/django-fluent/django-fluent-pages/actions/workflows/tests.yaml/badge.svg?branch=master
13+
:target: https://github.com/django-fluent/django-fluent-pages/actions/workflows/tests.yaml
1414
.. image:: https://img.shields.io/pypi/v/django-fluent-pages.svg
1515
:target: https://pypi.python.org/pypi/django-fluent-pages/
1616
.. image:: https://img.shields.io/pypi/l/django-fluent-pages.svg

0 commit comments

Comments
 (0)