From 9b8c5e7467631059159728fd4af33624dd133413 Mon Sep 17 00:00:00 2001 From: Jakub Onderka Date: Sat, 6 Jan 2024 13:07:39 +0100 Subject: [PATCH] chg: [internal] Update GitHub actions --- .github/workflows/python-package.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index e2297fe8..33219996 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -19,16 +19,12 @@ jobs: - name: Install packages run: | sudo apt-get install libpoppler-cpp-dev libzbar0 tesseract-ocr - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - name: Cache Python dependencies - uses: actions/cache@v2 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('REQUIREMENTS') }} + cache: 'pip' - name: Install dependencies run: | python -m pip install --upgrade pip @@ -42,12 +38,12 @@ jobs: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Test with pytest + - name: Run server in background run: | - # Run server in background misp-modules -l 127.0.0.1 -s & sleep 5 - # Check if modules are running - curl -sS localhost:6666/modules - # Run tests + # Check if server is running + curl -sS localhost:6666/healthcheck + - name: Test with pytest + run: | pytest tests