Skip to content

Commit b0b95c8

Browse files
committed
ci: update yaml files
1 parent 8a395b9 commit b0b95c8

File tree

3 files changed

+25
-23
lines changed

3 files changed

+25
-23
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ jobs:
4040
coverage run --source=qpimage -m pytest tests
4141
- name: Lint with flake8
4242
run: |
43-
flake8 .
43+
flake8 --exclude _version.py .
4444
- name: Upload coverage to Codecov
4545
uses: codecov/codecov-action@v3

.github/workflows/deploy_pypi.yml

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,26 @@
11
name: Release to PyPI
22

3-
on:
3+
on:
44
push:
55
tags:
66
- '*'
77

88
jobs:
9-
deploy:
10-
9+
build_sdist_wheel:
10+
name: Build source distribution
1111
runs-on: ubuntu-latest
1212
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/*

.readthedocs.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
version: 2
22
formats:
33
- pdf
4+
build:
5+
os: ubuntu-22.04
6+
tools:
7+
python: "3.11"
8+
jobs:
9+
post_checkout:
10+
- git fetch --unshallow || true
411
python:
5-
version: 3.8
612
install:
713
- requirements: docs/requirements.txt
814
- method: pip
915
path: .
10-
system_packages: false

0 commit comments

Comments
 (0)