diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..e329c843 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0f3fe21d..00000000 --- a/.travis.yml +++ /dev/null @@ -1,27 +0,0 @@ -language: python - -python: - - "3.5" - - "3.6" - - "3.7" - - "3.8" - -os: - - linux - -sudo: false - -install: - # add brotli for tests - - pip install brotlipy - - python setup.py install - - pip install coverage pytest-cov codecov - - pip install 'jinja2<3.0.0' - - pip install 'itsdangerous<2.0.0' - -script: - - python setup.py test - -after_success: - - codecov - diff --git a/setup.py b/setup.py index d07692e8..931ec8c5 100755 --- a/setup.py +++ b/setup.py @@ -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',