Testsuite in github actions #9
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: Python Testsuite Run | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install tmux | |
run: sudo apt-get update && sudo apt-get install -y tmux | |
- name: Check tmux basic usage | |
run: tmux -V; tmux new-session -d vi; tmux ls | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22.2 | |
- name: Build superfile | |
run: ./build.sh | |
- name: Check installation | |
run: tmux -V; ls; pwd; ls bin/ | |
- name: Check tmux superfile usage | |
run: tmux -L superfile new-session -d -s spf_test_session "$(pwd)/bin/spf"; tmux -L superfile ls | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9' | |
- name: Install Dependencies | |
run: pip install -r testsuite/requirements.txt | |
- name: Run Tests | |
run: python testsuite/main.py -d |