Skip to content

Commit 0fd99c9

Browse files
authored
Fix: Actions Test CI (#215)
* fix(Actions): Fixes Branch name used * docs(Readme): Adds status badge for github actions * fix(Actions): Fixes dependency issues
1 parent 4907698 commit 0fd99c9

File tree

5 files changed

+68
-93
lines changed

5 files changed

+68
-93
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: Test Package
55

66
on:
77
push:
8-
branches: [ "main" ]
8+
branches: [ "master" ]
99
pull_request:
10-
branches: [ "main" ]
10+
branches: [ "master" ]
1111

1212
permissions:
1313
contents: read
@@ -25,12 +25,15 @@ jobs:
2525
uses: actions/setup-python@v3
2626
with:
2727
python-version: ${{ matrix.python }}
28+
- name: Lint with flake8
29+
run: |
30+
python -m pip install flake8
31+
make lint
2832
- name: Install dependencies
2933
run: |
3034
python -m pip install poetry
31-
poetry install
32-
- name: Lint with flake8
33-
run: make lint
35+
poetry config virtualenvs.create false
36+
poetry install --with dev
3437
- name: Run Tests
3538
run: make test
3639
- name: Build Package

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ clean:
1111
@find . -name "__pycache__" -delete
1212

1313
lint:
14-
@flake8 graphene_mongo
14+
@flake8 graphene_mongo --count --show-source --statistics
1515

16-
test: clean lint
16+
test: clean
1717
pytest graphene_mongo/tests --cov=graphene_mongo --cov-report=html --cov-report=term
1818

1919
register-pypitest:

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
[![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)
22

3+
[![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)
4+
35
# Graphene-Mongo
46

57
A [Mongoengine](https://mongoengine-odm.readthedocs.io/) integration for [Graphene](http://graphene-python.org/).

poetry.lock

Lines changed: 53 additions & 83 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)