File tree Expand file tree Collapse file tree 3 files changed +25
-23
lines changed Expand file tree Collapse file tree 3 files changed +25
-23
lines changed Original file line number Diff line number Diff line change 40
40
coverage run --source=qpimage -m pytest tests
41
41
- name : Lint with flake8
42
42
run : |
43
- flake8 .
43
+ flake8 --exclude _version.py .
44
44
- name : Upload coverage to Codecov
45
45
uses : codecov/codecov-action@v3
Original file line number Diff line number Diff line change 1
1
name : Release to PyPI
2
2
3
- on :
3
+ on :
4
4
push :
5
5
tags :
6
6
- ' *'
7
7
8
8
jobs :
9
- deploy :
10
-
9
+ build_sdist_wheel :
10
+ name : Build source distribution
11
11
runs-on : ubuntu-latest
12
12
steps :
13
- - uses : actions/checkout@v4
14
- - name : Set up Python
15
- uses : actions/setup-python@v4
16
- with :
17
- python-version : ' 3.x'
18
- - name : Install dependencies
19
- run : |
20
- python -m pip install --upgrade pip
21
- pip install setuptools wheel twine
22
- pip install -e .
23
- - name : Build and publish
24
- env :
25
- TWINE_USERNAME : ci_qpi
26
- TWINE_PASSWORD : ${{ secrets.PYPI_PWD }}
27
- run : |
28
- python setup.py sdist bdist_wheel
29
- twine upload --skip-existing dist/*
13
+ - uses : actions/checkout@main
14
+ with :
15
+ fetch-depth : 0
16
+
17
+ - name : Build sdist
18
+ run : pipx run build --sdist --wheel
19
+
20
+ - name : publish
21
+ env :
22
+ TWINE_USERNAME : __token__
23
+ TWINE_PASSWORD : ${{ secrets.PYPI_PWD }}
24
+ run : |
25
+ pipx install twine
26
+ twine upload --skip-existing dist/*
Original file line number Diff line number Diff line change 1
1
version : 2
2
2
formats :
3
3
- pdf
4
+ build :
5
+ os : ubuntu-22.04
6
+ tools :
7
+ python : " 3.11"
8
+ jobs :
9
+ post_checkout :
10
+ - git fetch --unshallow || true
4
11
python :
5
- version : 3.8
6
12
install :
7
13
- requirements : docs/requirements.txt
8
14
- method : pip
9
15
path : .
10
- system_packages : false
You can’t perform that action at this time.
0 commit comments