Allow for nested logging and debug mode #361
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: SMAX Unit Tests (Linux, Mac) | |
on: [push] | |
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@v2 | |
- name: Git checkout server submodule | |
uses: actions/checkout@v2 | |
with: | |
repository: Smithsonian/smax-server | |
ssh-key: ${{ secrets.SSH_PRIVATE_KEY_SMAX_SERVER }} | |
path: redis_config_files | |
- 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 redis_config_files | |
chmod 755 smax-init.sh | |
./smax-init.sh | |
- name: Test with pytest | |
run: | | |
cd .. | |
pytest -v -x --log-level=DEBUG |