Skip to content

Commit 424670f

Browse files
authored
Merge pull request #7 from upsidetravel/final-test-circle-builds
bump to 0.0.3
2 parents 085f649 + 640610c commit 424670f

File tree

3 files changed

+36
-16
lines changed

3 files changed

+36
-16
lines changed

.circleci/config.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ jobs:
4545
command: |
4646
poetry publish --build --username "${PYPI_USERNAME}" --password "${PYPI_PASSWORD}" --no-interaction
4747
48+
tag_is_on_master:
49+
docker:
50+
- image: alpine/git:1.0.7
51+
steps:
52+
- checkout
53+
- run:
54+
name: Check that the tag being built is on master
55+
command: |
56+
[ "" != "$CIRCLE_TAG" ] && (git branch -a --contains "$CIRCLE_TAG" | grep -c "remotes/origin/master")
57+
4858
# When to run which job
4959
workflows:
5060
version: 2.1
@@ -54,21 +64,31 @@ workflows:
5464
- build
5565

5666
# The deployment workflow publishes the package, and is only run on a Git tag matching a
57-
# version regex being merged to master
67+
# version regex that exists on master
5868
deployment-workflow:
5969
jobs:
6070
- build:
71+
requires:
72+
- tag_is_on_master
73+
filters:
74+
tags:
75+
only: /v[0-9]+(\.[0-9]+)*/
76+
branches:
77+
ignore: /.*/
78+
79+
- tag_is_on_master:
6180
filters:
6281
tags:
6382
only: /v[0-9]+(\.[0-9]+)*/
6483
branches:
65-
only: master
84+
ignore: /.*/
6685

6786
- deployment:
6887
requires:
6988
- build
89+
- tag_is_on_master
7090
filters:
7191
tags:
7292
only: /v[0-9]+(\.[0-9]+)*/
7393
branches:
74-
only: master
94+
ignore: /.*/

poetry.lock

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

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "graphene_pydantic"
3-
version = "0.0.2"
3+
version = "0.0.3"
44
description = "Graphene Pydantic integration"
55
readme = "README.md"
66
repository = "https://github.com/upsidetravel/graphene-pydantic"
@@ -25,12 +25,12 @@ graphene = ">=2.1.3,<3"
2525
pydantic = ">=0.25,<0.30"
2626

2727
[tool.poetry.dev-dependencies]
28-
pytest = "~4.6.3"
28+
pytest = "~4.6.4"
2929
pytest-cov = "~2.7.1"
30-
tox = "3.7.0" # sync with tox.ini
30+
tox = "~3.12.0" # sync with tox.ini
3131
mypy = "0.720"
3232
black = "19.3b0"
33-
pre-commit = "1.14.4"
33+
pre-commit = "~1.17.0"
3434

3535
[build-system]
3636
requires = ["poetry>=0.12"]

0 commit comments

Comments
 (0)