Skip to content
Myr

Test Suite on GitHub Actions (#907)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* Test Suite on GitHub Actions * Add linting checks * Update badges. Drop unused codecov, pending GitHub action support,

authored by Tom Christie · committed by GitHub · parent 9085582 · Browse files · 7 files+47 added−78 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

7 files+47 added−78 removed

  • other:+47 added−78 removed

7 files+47 added−78 removed

added:.github/workflows/test-suite.yml+29 added
modified:docs/index.md+2 added-5 removed
modified:scripts/install+13 added-9 removed
1#!/bin/sh -e23export PREFIX="venv/bin/"3# Use the Python executable provided from the `-p` option, or a default.4[ "$1" = "-p" ] && PYTHON=$2 || PYTHON="python3"56REQUIREMENTS="requirements.txt"7VENV="venv"89set -x107python -m venv venv8${PREFIX}python -m pip install -U pip9${PREFIX}python -m pip install -r requirements.txt11if [ -z "$GITHUB_ACTIONS" ]; then12 "$PYTHON" -m venv "$VENV"13 PIP="$VENV/bin/pip"14else15 PIP="pip"16fi1711set +x1213echo14echo "Success! You can now activate your virtual environment using:"15echo "source ${PREFIX}activate"18"$PIP" install -r "$REQUIREMENTS"19"$PIP" install -e .
modified:scripts/test+1 added-1 removed
5 unmodified lines
6fi78set -x910if [ -z $CI ]; then10if [ -z $GITHUB_ACTIONS ]; then11 scripts/check12fi1314${PREFIX}pytest $@
deleted:.travis.yml-53 removed
deleted:codecov.yml-8 removed
modified:README.md+2 added-2 removed
3 unmodified lines
45<p align="center"><strong>HTTPX</strong> <em>- A next-generation HTTP client for Python.</em></p>67<p align="center">8<a href="https://travis-ci.org/encode/httpx">9 <img src="https://travis-ci.org/encode/httpx.svg?branch=master" alt="Build Status">8<a href="https://github.com/encode/httpx/actions">9 <img src="https://github.com/encode/httpx/workflows/Test%20Suite/badge.svg" alt="Test Suite">10</a>11<a href="https://codecov.io/gh/encode/httpx">12 <img src="https://codecov.io/gh/encode/httpx/branch/master/graph/badge.svg" alt="Coverage">13</a>
117 unmodified lines