mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-17 10:13:56 -05:00
Try to reproduce exactly what's done in the travis build to test
This commit is contained in:
parent
69ac7b9bcf
commit
c9de592832
30
.github/workflows/docker-publish.yml
vendored
30
.github/workflows/docker-publish.yml
vendored
@ -10,37 +10,23 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-20.04]
|
os: [ubuntu-20.04]
|
||||||
python-version: [3.7]
|
python-version: [3.6, 3.7, 3.8]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Update system, install system requirements
|
- name: Tests
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update -qq
|
sudo apt-get update -qq
|
||||||
sudo apt-get install -qq libpoppler-cpp-dev unpaper tesseract-ocr
|
sudo apt-get install -qq libpoppler-cpp-dev unpaper tesseract-ocr imagemagick ghostscript optipng
|
||||||
- name: Upgrade pip
|
pip install --upgrade pipenv
|
||||||
run: |
|
pipenv install --system --dev
|
||||||
pip install --upgrade pip pipenv
|
|
||||||
- name: Gather pip requirements
|
|
||||||
run: |
|
|
||||||
pipenv lock --dev -r > requirements.txt
|
|
||||||
- name: Install pip requirements
|
|
||||||
run: |
|
|
||||||
pip install -r requirements.txt
|
|
||||||
- name: Execute Tests
|
|
||||||
run: |
|
|
||||||
cd src/
|
cd src/
|
||||||
pytest --cov
|
pipenv run pytest --cov
|
||||||
pycodestyle
|
pipenv run pycodestyle
|
||||||
- name: Run sphinx
|
pipenv run coveralls
|
||||||
run: |
|
|
||||||
sphinx-build -b html ../docs ../docs/_build -W
|
|
||||||
- name: Execute coveralls
|
|
||||||
run: |
|
|
||||||
coveralls
|
|
||||||
# Build and push image to docker hub.
|
# Build and push image to docker hub.
|
||||||
buildx:
|
buildx:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
Loading…
x
Reference in New Issue
Block a user