diff options
author | Michael Howitz <mh@gocept.com> | 2020-11-13 16:33:10 +0100 |
---|---|---|
committer | Michael Howitz <mh@gocept.com> | 2020-11-13 16:33:10 +0100 |
commit | 815752c15d8beb6d0a33b20845cbcce86f4cb3f8 (patch) | |
tree | 19325dd082510636178bb31efbe22e64c99e9839 /.github | |
parent | 652b68178bb91ce664beb23941b329c30ad343ca (diff) | |
download | zope-browser-815752c15d8beb6d0a33b20845cbcce86f4cb3f8.tar.gz |
Activate GH actions.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/tests.yml | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..e188bf0 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,49 @@ +name: run tests + +on: + push: + schedule: + - cron: '* * * * 0' # run once a week (sunday) + +jobs: + build: + strategy: + matrix: + python-version: + - "2.7" + - "3.5" + - "3.6" + - "3.7" + - "3.8" + - "3.9" + - "pypy2" + - "pypy3" + include: + - python-version: "3.8" + env: + - lint + - coverage + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Pip cache + uses: actions/cache@v2 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles(setup.*', 'tox.ini') }} + restore-keys: | + ${{ runner.os }}-pip- + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install coveralls + - name: Test + run: tox -e {{ matrix.env || 'py'}} + - name: Coverage + run: coveralls + if: {{ matrix.env == 'coverage'}} |