Skip to content

Commit ac65f18

Browse files
authored
Merge pull request #1 from sourcelair/prepare-release/0.3.0
Prepare release 0.3.0
2 parents 090069e + cdfa28d commit ac65f18

File tree

7 files changed

+507
-37
lines changed

7 files changed

+507
-37
lines changed

.github/workflows/publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up Python
13+
uses: actions/setup-python@v2
14+
with:
15+
python-version: "3.8"
16+
- name: Install dependencies
17+
run: |
18+
pip install --upgrade pip==20.2.4 poetry==1.1.4
19+
poetry config virtualenvs.create false
20+
poetry install
21+
- name: Build and publish
22+
run: |
23+
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
24+
poetry publish --build

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Tests
2+
3+
on: push
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
max-parallel: 4
10+
matrix:
11+
python-version: [3.6, 3.7, 3.8]
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install dependencies
20+
run: |
21+
pip install --upgrade pip==20.2.4 poetry==1.1.4
22+
poetry config virtualenvs.create false
23+
poetry install
24+
- name: Check formatting
25+
run: black --check ./
26+
- name: Check typings
27+
run: mypy *.py
28+
- name: Test with pytest
29+
run: pytest ./

0 commit comments

Comments
 (0)