Skip to content

Commit

Permalink
Fix: Actions Test CI (#215)
Browse files Browse the repository at this point in the history
* fix(Actions): Fixes Branch name used

* docs(Readme): Adds status badge for github actions

* fix(Actions): Fixes dependency issues
  • Loading branch information
abhinand-c authored Apr 3, 2023
1 parent 4907698 commit 0fd99c9
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 93 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Test Package

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

permissions:
contents: read
Expand All @@ -25,12 +25,15 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}
- name: Lint with flake8
run: |
python -m pip install flake8
make lint
- name: Install dependencies
run: |
python -m pip install poetry
poetry install
- name: Lint with flake8
run: make lint
poetry config virtualenvs.create false
poetry install --with dev
- name: Run Tests
run: make test
- name: Build Package
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ clean:
@find . -name "__pycache__" -delete

lint:
@flake8 graphene_mongo
@flake8 graphene_mongo --count --show-source --statistics

test: clean lint
test: clean
pytest graphene_mongo/tests --cov=graphene_mongo --cov-report=html --cov-report=term

register-pypitest:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[![Build Status](https://travis-ci.org/graphql-python/graphene-mongo.svg?branch=master)](https://travis-ci.org/graphql-python/graphene-mongo) [![Coverage Status](https://coveralls.io/repos/github/graphql-python/graphene-mongo/badge.svg?branch=master)](https://coveralls.io/github/graphql-python/graphene-mongo?branch=master) [![Documentation Status](https://readthedocs.org/projects/graphene-mongo/badge/?version=latest)](http://graphene-mongo.readthedocs.io/en/latest/?badge=latest) [![PyPI version](https://badge.fury.io/py/graphene-mongo.svg)](https://badge.fury.io/py/graphene-mongo) [![PyPI pyversions](https://img.shields.io/pypi/pyversions/graphene-mongo.svg)](https://pypi.python.org/pypi/graphene-mongo/) [![Downloads](https://pepy.tech/badge/graphene-mongo)](https://pepy.tech/project/graphene-mongo)

[![Lint](https://github.com/graphql-python/graphene-mongo/actions/workflows/lint.yml/badge.svg?branch=master)](https://github.com/graphql-python/graphene-mongo/actions/workflows/lint.yml) [![Test Package](https://github.com/graphql-python/graphene-mongo/actions/workflows/ci.yml/badge.svg)](https://github.com/graphql-python/graphene-mongo/actions/workflows/ci.yml)

# Graphene-Mongo

A [Mongoengine](https://mongoengine-odm.readthedocs.io/) integration for [Graphene](http://graphene-python.org/).
Expand Down
136 changes: 53 additions & 83 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0fd99c9

Please sign in to comment.