FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-escpos/.github/workflows/pythonpackage.yml at master · python-escpos/python-escpos · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
python-escpos
/
python-escpos
Public
Notifications
You must be signed in to change notification settings
Fork
316
Star
1.3k
Code
Issues
60
Pull requests
12
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-escpos
/
.github
/
workflows
/
pythonpackage.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
63 lines (62 loc) · 2.37 KB
Breadcrumbs
python-escpos
/
.github
/
workflows
/
pythonpackage.yml
Copy path
File metadata and controls
63 lines (62 loc) · 2.37 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
#
This workflow will install Python dependencies, run tests and lint with a variety of Python versions
#
For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name
:
Python package
on
:
push
:
branches
:
[ master ]
pull_request
:
branches
:
[ master ]
jobs
:
build
:
runs-on
:
ubuntu-latest
strategy
:
matrix
:
python-version
:
['3.10', '3.11', '3.12', '3.13', '3.14']
steps
:
-
uses
:
actions/checkout@v7
with
:
submodules
:
'
recursive
'
-
name
:
Set up Python ${{ matrix.python-version }}
uses
:
actions/setup-python@v7.0.0
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Install dependencies
run
:
|
sudo apt-get update
sudo apt-get install -y graphviz libenchant-2-2 gcc libcups2-dev python3-dev xindy
python -m pip install --upgrade pip
pip install flake8 pytest tox tox-gh
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
-
name
:
Check sorting of imports
uses
:
isort/isort-action@master
with
:
requirementsFiles
:
"
requirements.txt doc/requirements.txt
"
sortPaths
:
"
./doc ./src ./examples ./test ./setup.py
"
-
name
:
Lint with flake8
run
:
|
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E,F,W --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
-
name
:
Test with tox
run
:
|
tox --conf pyproject.toml
env
:
ESCPOS_CAPABILITIES_FILE
:
/home/runner/work/python-escpos/python-escpos/capabilities-data/dist/capabilities.json
-
name
:
Test mypy with tox
run
:
|
tox --conf pyproject.toml -e mypy
env
:
ESCPOS_CAPABILITIES_FILE
:
/home/runner/work/python-escpos/python-escpos/capabilities-data/dist/capabilities.json
-
name
:
Upload coverage to Codecov
uses
:
codecov/codecov-action@v7
env
:
CODECOV_TOKEN
:
${{ secrets.CODECOV_TOKEN }}
with
:
env_vars
:
OS,PYTHON
fail_ci_if_error
:
true
files
:
./coverage.xml
exclude
:
"
**/.mypy_cache
"
flags
:
unittests
name
:
coverage-tox-${{ matrix.python-version }}
verbose
:
true
Back
|
FazBrowse Home
|
New Git URL