Skip to content

Running RIME server tests #38

Running RIME server tests

Running RIME server tests #38

# Modelled on https://github.com/actions/starter-workflows/blob/main/ci/python-app.yml
name: run_server_tests
run-name: Running RIME server tests
on: [push]
jobs:
run-pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
lfs: true
- name: Give permissions on example dir
run: |
chmod 777 example
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 rime --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings.
flake8 rime --count --exit-zero --statistics
- name: Test with pytest
run: |
pytest