Skip to content

Commit

Permalink
Add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ekiro committed Feb 4, 2022
1 parent 2d846d3 commit 88d225e
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 13 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python application

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

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.test.txt
python setup.py develop
- name: Test with pytest
run: |
pytest
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# haps [![PyPI](https://badge.fury.io/py/haps.png)](https://pypi.python.org/pypi/haps/) [![Build Status](https://travis-ci.org/lunarwings/haps.svg?branch=master)](https://travis-ci.org/lunarwings/haps)
# haps [![PyPI](https://badge.fury.io/py/haps.png)](https://pypi.python.org/pypi/haps/) [![Python application](https://github.com/lunarwings/haps/actions/workflows/python-app.yml/badge.svg?branch=master)](https://github.com/lunarwings/haps/actions/workflows/python-app.yml)
Haps [χaps] is a simple DI library, with IoC container included. It is written in pure Python with no external dependencies.

Look how easy it is to use:
Expand Down Expand Up @@ -46,7 +46,8 @@ Install `requirements.test.txt` and run `py.test` in main directory.
## 1.1.3 (2022-02-04)
- Add `>>` operator
- Add `DI` alias
- Update `.travis.yml`
- ~~Update~~ Remove `.travis.yml`
- Setup GitHub actions

## 1.1.1 (2018-07-27)
- Fix bug with optional arguments for functions decorated with `@inject`
Expand Down

0 comments on commit 88d225e

Please sign in to comment.