Skip to content

Commit

Permalink
github actions python tests
Browse files Browse the repository at this point in the history
  • Loading branch information
devxpy committed Jun 25, 2024
1 parent 331fdf2 commit 9aa7f3e
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
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 \
# build-essential \
# wget \
# cmake \
# libboost-dev \
# libmagickwand-dev \
# libgl1-mesa-glx \
# && rm -rf /var/lib/apt/lists/*

- 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

0 comments on commit 9aa7f3e

Please sign in to comment.