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
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/python_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: python_tests
cdrini marked this conversation as resolved.
Show resolved Hide resolved
on: [push] # pull_request,
jobs:
python_tests:
strategy:
fail-fast: false
matrix:
python-version: [2.7, 3.8] # , 3.9]
runs-on: ubuntu-20.04
cclauss marked this conversation as resolved.
Show resolved Hide resolved
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 }}
- 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
- run: make git
- if: matrix.python-version >= 3.0
run: pushd vendor/infogami && git pull origin master && popd
- run: make lint
- run: make i18n
- run: make test-py
- run: source scripts/run_doctests.sh