Skip to content

test without submodule #397

test without submodule

test without submodule #397

Workflow file for this run

name: SMAX Unit Tests (Linux, Mac)
on:
push:
branches:
- main
pull_request:
jobs:
build:
defaults:
run:
shell: bash -l {0}
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 9
matrix:
os: [ubuntu-latest]
python-version: ['3.10', '3.11', '3.12']
redis-version: [latest]
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Git checkout smax-server
uses: actions/checkout@v4
with:
repository: Smithsonian/smax-server
path: smax-server
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Pip install SMAX package
run: pip3 install .
- name: Setup redis
uses: shogo82148/actions-setup-redis@v1
with:
redis-version: ${{ matrix.redis-version }}
auto-start: "true"
redis-conf: |
bind 127.0.0.1
protected-mode no
- name: Load LUA scripts
run: |
cd smax-server
./smax-init.sh lua
- name: Test with pytest
run: |
cd ..
pytest -v -x --log-level=DEBUG