Skip to content

Commit 95499fe

Browse files
authored
Switch to CircleCI for deployments and linting (#5)
1 parent 9cf9027 commit 95499fe

4 files changed

Lines changed: 39 additions & 77 deletions

File tree

.circleci/config.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
version: 2.1
2+
3+
workflows:
4+
lint:
5+
jobs:
6+
- lint
7+
deploy:
8+
jobs:
9+
- upload_to_pypi:
10+
filters:
11+
# Ignore any commit on any branch by default
12+
branches:
13+
ignore: /.*/
14+
# Run only when a tag is created
15+
tags:
16+
only: v*.*.*
17+
18+
19+
jobs:
20+
lint:
21+
docker:
22+
- image: circleci/python:3.6
23+
steps:
24+
- checkout
25+
- run: pip3 install --upgrade mypy black
26+
- run: black --check .
27+
- run: mypy -p "brainframe.cli"
28+
upload_to_pypi:
29+
docker:
30+
- image: circleci/python:3.6
31+
environment:
32+
POETRY_HTTP_BASIC_PYPI_USERNAME: __token__
33+
34+
steps:
35+
- checkout
36+
- run: pip3 install --upgrade poetry
37+
- run: poetry build
38+
- run: POETRY_HTTP_BASIC_PYPI_PASSWORD=${PYPI_PASSWORD} poetry publish

.github/workflows/deploy.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ dist/
33
.idea/
44
__pycache__
55
*.pyc
6+
*.egg-info/

0 commit comments

Comments
 (0)