Skip to content

Update required httpx version for v0.28 #66

Update required httpx version for v0.28

Update required httpx version for v0.28 #66

Workflow file for this run

name: tests
on:
pull_request:
push:
branches:
- '*'
tags:
- 'v*'
jobs:
flake8:
name: Flake8
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- name: Set Up Python
uses: actions/setup-python@v5.0.0
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install flake8
- name: Check
run: python -m flake8
test:
name: Test
needs: flake8
runs-on: ubuntu-latest
strategy:
matrix:
python:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
- 'pypy-3.9'
- 'pypy-3.10'
steps:
- uses: actions/checkout@v4.1.1
- name: Set Up Python
uses: actions/setup-python@v5.0.0
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U setuptools wheel
python -m pip install -U .[all] pytest-cov codecov
- name: Run Tests
run: python -m pytest --cov=thriftpy2_httpx_client --cov-report=xml
- name: Upload Coverage
run: python -m codecov --token=${{ secrets.CODECOV_TOKEN }}
publish:
if: startsWith(github.ref, 'refs/tags/')
name: Create Release
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
- name: Set Up Python
uses: actions/setup-python@v5.0.0
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U setuptools wheel
- name: Build
run: python setup.py sdist bdist_wheel
- name: Change Log
id: change_log
run: >-
echo "::set-output name=text::$(
git --no-pager log --pretty=format:'- %s (%h)'
`git describe --abbrev=0 --tags HEAD^1`..HEAD
)"
- name: Create Release
id: create_release
uses: ncipollo/release-action@v1
with:
tag: ${{ github.ref }}
name: Release ${{ github.ref }}
body: |
Change Log:
${{ steps.change_log.outputs.text }}
draft: true # Give me a moment to fill in the description
artifacts: "dist/*"
token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}