* push action Initial scratch pad * #26 requirements.txt added * #26 unit test failures fixes * #26 install theme in action python3 compatible test * #26 test failure fixes based on new pelican * #26 python3 test fixes
28 lines
617 B
YAML
28 lines
617 B
YAML
name: Python package
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-18.04
|
|
strategy:
|
|
max-parallel: 4
|
|
matrix:
|
|
python-version: [2.7, 3.5, 3.6, 3.7]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r tests/requirements.txt
|
|
pelican-themes -i ../attila
|
|
- name: Test with pytest
|
|
run: |
|
|
cd tests
|
|
pytest
|