Skip to content

github actions python tests #1853

github actions python tests

github actions python tests #1853

Workflow file for this run

name: Python tests
on: [push, workflow_dispatch]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10.12"]
steps:
- uses: actions/checkout@v4
# with:
# submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install system dependencies
run: |
apt-get update && apt-get install -y --no-install-recommends \
libpoppler-cpp-dev
# build-essential \
# wget \
# cmake \
# libboost-dev \
# libmagickwand-dev \
# libgl1-mesa-glx \
&& rm -rf /var/lib/apt/lists/*

Check failure on line 34 in .github/workflows/python-tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/python-tests.yml

Invalid workflow file

You have an error in your yaml syntax on line 34
- name: Install python dependencies
run: |
pip install -U poetry pip && poetry install --only main --no-interaction
- name: Load secrets into env
uses: oNaiPs/secrets-to-env-action@v1
with:
secrets: ${{ toJSON(secrets) }}
- name: Test with pytest
run: |
poetry run ./scripts/run-tests.sh