Gitub actions (#53)
* 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
This commit is contained in:
parent
a31ff4e2c9
commit
b7c3285563
6 changed files with 78 additions and 10 deletions
28
.github/workflows/main.yml
vendored
Normal file
28
.github/workflows/main.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue