Skip to content

Commit

Permalink
GitHub Actions builds
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Jun 8, 2021
1 parent e29403f commit 1886b76
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 25 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: python -m pip install --upgrade pip wheel
- run: pip install tox tox-gh-actions
- run: tox -eflake8
tests:
name: tests
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: ['3.6', '3.7', '3.8', '3.9', 'pypy3']
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- run: python -m pip install --upgrade pip wheel
- run: pip install tox tox-gh-actions
- run: tox
coverage:
name: coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: python -m pip install --upgrade pip wheel
- run: pip install tox tox-gh-actions codecov
- run: tox
- run: codecov
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Flask-Moment
============

[![Build Status](https://travis-ci.org/miguelgrinberg/Flask-Moment.svg?branch=master)](https://travis-ci.org/miguelgrinberg/Flask-Moment)
[![Build status](https://github.com/miguelgrinberg/flask-moment/workflows/build/badge.svg)](https://github.com/miguelgrinberg/flask-moment/actions) [![codecov](https://codecov.io/gh/miguelgrinberg/flask-moment/branch/main/graph/badge.svg)](https://codecov.io/gh/miguelgrinberg/flask-moment)

This extension enhances Jinja2 templates with formatting of dates and times
using [moment.js](http://momentjs.com/).
Expand Down
3 changes: 2 additions & 1 deletion tests/test_flask_moment.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,8 @@ def test_disabling_moment_custom(self):
assert 'crossorigin' not in include_moment

def test_disabling_moment_custom_version(self):
include_moment = self._moment.include_moment(version='2.17.9', sri=False)
include_moment = self._moment.include_moment(version='2.17.9',
sri=False)
assert 'src=\"' in include_moment
assert 'integrity=\"' not in include_moment
assert 'crossorigin' not in include_moment

0 comments on commit 1886b76

Please sign in to comment.