Skip to content

Commit 18a63c2

Browse files
committed
Adds build on push and also a readme typo i noticed
1 parent 8cfd08f commit 18a63c2

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed

.github/workflows/build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Runs a build test on every commit to ensure functionality.
2+
3+
name: Build
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
- develop
10+
pull_request:
11+
branches:
12+
- main
13+
- develop
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
19+
strategy:
20+
matrix:
21+
python-version: [3.8, 3.9]
22+
23+
steps:
24+
- name: Checkout source
25+
uses: actions/checkout@v2
26+
27+
- name: Set up Python
28+
uses: actions/setup-python@v1
29+
with:
30+
python-version: $ {{ matrix.python-version }}
31+
32+
- name: Set up Poetry
33+
uses: Gr1N/setup-poetry@v4
34+
35+
- name: Install Python deps
36+
run: |
37+
poetry install --no-dev

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ paste.url
4545
>>> 'https://mystb.in/<your generated ID>.python'
4646

4747
get_paste = await mystbin_client.get("https://mystb.in/<your generated ID>")
48-
str(paste)
48+
str(get_paste)
4949
>>> "Hello from MystBin!"
5050

5151
paste.created_at
@@ -60,7 +60,8 @@ import requests
6060
sync_session = requests.Session()
6161
mystbin_client = mystbin.Client(session=sync_session) ## optional api_key kwarg also
6262

63-
mystbin_client.post("Hello from sync Mystb.in!", syntax="text")
63+
paste = mystbin_client.post("Hello from sync Mystb.in!", syntax="text")
64+
str(paste)
6465
>>> 'https://mystb.in/<your generated ID>.text'
6566
```
6667

0 commit comments

Comments
 (0)