Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Action to test Python code #4188

Merged
merged 17 commits into from
Dec 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/python_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: python_tests
cdrini marked this conversation as resolved.
Show resolved Hide resolved
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
cdrini marked this conversation as resolved.
Show resolved Hide resolved
jobs:
python_tests:
strategy:
fail-fast: false
matrix:
python-version: [2.7, 3.8] # , 3.9]
runs-on: ubuntu-16.04 # Should match Dockerfile.olbase
steps:
cdrini marked this conversation as resolved.
Show resolved Hide resolved
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# https://lxml.de/installation.html#requirements
- run: sudo apt-get install libxml2-dev libxslt-dev
cdrini marked this conversation as resolved.
Show resolved Hide resolved
- run: pip install --upgrade pip setuptools wheel
- run: pip install -r requirements_test.txt
- run: pip list --outdated
- if: matrix.python-version == 3.8
run: make lint-diff
- run: make git
- run: make i18n
# Run legacy Python tests on legacy Infogami
- if: matrix.python-version < 3.0
run: make test-py && source scripts/run_doctests.sh
# Run both Py2 and Py3 tests on Infogami master
- run: pushd vendor/infogami && git pull origin master && popd
- run: make lint
- run: make test-py
- run: source scripts/run_doctests.sh
50 changes: 0 additions & 50 deletions .travis.yml

This file was deleted.