File tree Expand file tree Collapse file tree 2 files changed +40
-2
lines changed Expand file tree Collapse file tree 2 files changed +40
-2
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ paste.url
45
45
>> > ' https://mystb.in/<your generated ID>.python'
46
46
47
47
get_paste = await mystbin_client.get(" https://mystb.in/<your generated ID>" )
48
- str (paste )
48
+ str (get_paste )
49
49
>> > " Hello from MystBin!"
50
50
51
51
paste.created_at
@@ -60,7 +60,8 @@ import requests
60
60
sync_session = requests.Session()
61
61
mystbin_client = mystbin.Client(session = sync_session) # # optional api_key kwarg also
62
62
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)
64
65
>> > ' https://mystb.in/<your generated ID>.text'
65
66
```
66
67
You can’t perform that action at this time.
0 commit comments