FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-binance/.github/workflows/python-app.yml at master · GenerousMan/python-binance · GitHub
GenerousMan
/
python-binance
Public
forked from
sammchardy/python-binance
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-binance
/
.github
/
workflows
/
python-app.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
84 lines (79 loc) · 2.51 KB
Breadcrumbs
python-binance
/
.github
/
workflows
/
python-app.yml
Copy path
File metadata and controls
84 lines (79 loc) · 2.51 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#
This workflow will install Python dependencies, run tests and lint with a single version of Python
#
For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name
:
Python application
on
:
workflow_dispatch
:
push
:
branches
:
[ main, master ]
pull_request
:
branches
:
[ main, master ]
permissions
:
contents
:
read
jobs
:
lint
:
runs-on
:
ubuntu-latest
timeout-minutes
:
5
steps
:
-
uses
:
actions/checkout@v4
-
name
:
Set up Python
uses
:
actions/setup-python@v5
with
:
python-version
:
'
3.9
'
-
name
:
Install Ruff
run
:
pip install ruff
-
name
:
Lint code with Ruff
run
:
ruff check --output-format=github --target-version=py39 .
-
name
:
Check code formatting with Ruff
run
:
ruff format --check .
continue-on-error
:
true
build
:
needs
:
lint
runs-on
:
ubuntu-22.04
timeout-minutes
:
60
env
:
PROXY
:
"
http://51.83.140.52:16301
"
TEST_TESTNET
:
"
true
"
TEST_API_KEY
:
"
u4L8MG2DbshTfTzkx2Xm7NfsHHigvafxeC29HrExEmah1P8JhxXkoOu6KntLICUc
"
TEST_API_SECRET
:
"
hBZEqhZUUS6YZkk7AIckjJ3iLjrgEFr5CRtFPp5gjzkrHKKC9DAv4OH25PlT6yq5
"
TEST_FUTURES_API_KEY
:
"
227719da8d8499e8d3461587d19f259c0b39c2b462a77c9b748a6119abd74401
"
TEST_FUTURES_API_SECRET
:
"
b14b935f9cfacc5dec829008733c40da0588051f29a44625c34967b45c11d73c
"
strategy
:
max-parallel
:
1
matrix
:
python
:
["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
steps
:
-
uses
:
actions/checkout@v4
-
name
:
Checking env
run
:
|
echo "PROXY: $PROXY"
env
-
name
:
Set up Python ${{ matrix.python }}
uses
:
actions/setup-python@v5
with
:
python-version
:
${{ matrix.python }}
cache
:
'
pip
'
-
name
:
Install dependencies
run
:
|
python -m pip install --upgrade pip
pip install pytest pytest-cov pyright tox
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi
-
name
:
Type check with pyright
run
:
pyright
-
name
:
Test with tox
run
:
tox -e py
-
name
:
Coveralls Parallel
uses
:
coverallsapp/github-action@v2
with
:
flag-name
:
run-${{ join(matrix.*, '-') }}
parallel
:
true
finish
:
needs
:
build
if
:
${{ always() }}
runs-on
:
ubuntu-latest
timeout-minutes
:
5
steps
:
-
name
:
Coveralls Finished
uses
:
coverallsapp/github-action@v2
with
:
parallel-finished
:
true
Back
|
FazBrowse Home
|
New Git URL