diff --git a/.github/workflows/pelican-test.yaml b/.github/workflows/pelican-test.yaml new file mode 100644 index 0000000..4264ff5 --- /dev/null +++ b/.github/workflows/pelican-test.yaml @@ -0,0 +1,28 @@ +name: Pelican test +on: + - push + - pull_request +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: + - 3.6 + - 3.7 + - 3.8 + - 3.9 + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + submodules: true + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + pip install tox tox-gh-actions + - name: Test with tox + run: tox diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..142865b --- /dev/null +++ b/tox.ini @@ -0,0 +1,16 @@ +[tox] +envlist = py{36,37,38,39} +skipsdist = True + +[gh-actions] +python = + 3.6: py36 + 3.7: py37 + 3.8: py38 + 3.9: py39 + +[testenv] +deps = + -r docs/requirements.txt +commands = + pelican -s docs/pelicanconf.py