Skip to content

Commit

Permalink
Move test CI from Travis to GitHub Actions
Browse files Browse the repository at this point in the history
Also:
- Remove older Python versions from CI
- Switch to updated PSF httpbin
  • Loading branch information
tw4l committed May 13, 2024
1 parent 8c305f5 commit fee8518
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 28 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on: [push, pull_request]

jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
max-parallel: 3
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']

steps:
- name: checkout
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install brotlipy coverage codecov
- name: Install warcio
run: python setup.py install

- name: Run tests
run: python setup.py test

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ def run_tests(self):
tests_require=[
'pytest',
'pytest-cov',
'httpbin==0.5.0',
'httpbin>=0.10.2',
'requests',
'wsgiprox',
'jinja2',
],
classifiers=[
'Development Status :: 5 - Production/Stable',
Expand Down

0 comments on commit fee8518

Please sign in to comment.