Skip to content

Commit

Permalink
Replace Travis with Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Oct 27, 2020
1 parent 457216e commit 6540987
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 12 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Run tests
py.test --cov .
10 changes: 0 additions & 10 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,6 +1,6 @@
# Emrichen – Template engine for YAML & JSON

[![Build Status](https://travis-ci.org/japsu/emrichen.svg?branch=master)](https://travis-ci.org/japsu/emrichen) [![PyPI version](https://badge.fury.io/py/emrichen.svg)](https://badge.fury.io/py/emrichen)
[![Build Status](https://github.com/con2/emrichen/workflows/Test/badge.svg)](https://github.com/con2/emrichen/actions) [![PyPI version](https://badge.fury.io/py/emrichen.svg)](https://badge.fury.io/py/emrichen)

Emrichen takes in templates written in YAML or JSON, processes tags that do things like variable substitution, and outputs YAML or JSON.

Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
with open(os.path.join(source_dir, 'README.md'), encoding='utf-8') as f:
long_description = f.read()

dev_requirements = ["pytest<6.2.0", "pytest-cov==2.10.1"]

setup(
name='emrichen',
Expand All @@ -33,6 +34,7 @@
]
},
install_requires=["PyYAML", "pyaml", "jsonpath-rw~=1.4.0"],
tests_require=["pytest"],
extras_require={"dev": dev_requirements},
tests_require=dev_requirements,
setup_requires=["pytest-runner"],
)

0 comments on commit 6540987

Please sign in to comment.