Skip to content

Commit

Permalink
ci: update yaml files
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Jan 5, 2025
1 parent 4446d0d commit c777591
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ jobs:
coverage run --source=qpretrieve -m pytest tests
- name: Lint with flake8
run: |
flake8 .
flake8 --exclude _version.py .
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
37 changes: 17 additions & 20 deletions .github/workflows/deploy_pypi.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
name: Release to PyPI

on:
on:
push:
tags:
- '*'

jobs:
deploy:

build_sdist_wheel:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install -e .
- name: Build and publish
env:
TWINE_USERNAME: ci_qpi
TWINE_PASSWORD: ${{ secrets.PYPI_PWD }}
run: |
python setup.py sdist bdist_wheel
twine upload --skip-existing dist/*
- uses: actions/checkout@main
with:
fetch-depth: 0

- name: Build sdist
run: pipx run build --sdist --wheel

- name: publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PWD }}
run: |
pipx install twine
twine upload --skip-existing dist/*
6 changes: 4 additions & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ formats:
build:
os: ubuntu-22.04
tools:
python: "3.10"
python: "3.11"
jobs:
post_checkout:
- git fetch --unshallow || true
python:
install:
- requirements: docs/requirements.txt
- method: pip
path: .
system_packages: false

0 comments on commit c777591

Please sign in to comment.