Skip to content

Commit

Permalink
Switch to GitHub Actions for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
apdavison committed Jan 9, 2024
1 parent f1190a2 commit 9013c5e
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 44 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Run Sumatra tests

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.4", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r ci/requirements.txt
pip install -r ci/requirements-test.txt
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings.
#flake8 . --count --exit-zero --max-complexity=10 --max-line-length=119 --statistics
- name: Test with pytest
run: |
pytest test/unittests
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ MANIFEST
.pydevproject
.komodoproject
.idea
*.egg-info
*.egg-info
env
test/example_repositories/mercurial/hg/wcache
38 changes: 0 additions & 38 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions ci/requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sarge
numpy
scipy
matplotlib
nose
pillow
coverage
coveralls
pytest
pytest-cov
flake8
3 changes: 1 addition & 2 deletions ci/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# Base requirements for running Sumatra, for all supported versions of Python
Django>=1.8
Django<3
django-tagging>=0.4
httplib2
jinja2
docutils
parameters
future
# optional requirements, depending on which version control systems you use
hgapi
GitPython>=0.3.6
Expand Down

0 comments on commit 9013c5e

Please sign in to comment.