Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: run bash-completion tests #292

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 45 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,50 @@ jobs:
main/benchmarks.txt
benchmark-results.md

# Run bash-completion test suite
bash-completion-tests:
name: "bash-completion tests"
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: "scop/bash-completion"
ref: "2.15.0"
path: "bash-completion"

- name: Download prebuilt brush binaries
uses: actions/download-artifact@v4
with:
name: "binaries-x86_64-linux"
path: "binaries"

- name: Setup downloads
run: |
chmod +x binaries/*
ls -l binaries

- name: Install prerequisites for running tests
run: |
sudo apt-get update -y
sudo apt-get install -y python3 pytest
python3 -m pip install --user pytest-report-md

- name: Run suite
env:
BASH_COMPLETION_TEST_BASH: ${{ github.workspace }}/binaries/brush --noprofile --input-backend=basic
working-directory: bash-completion
run: |
pytest ./test/t -n 128 -v --md-report --md-report-flavor gfm --md-report-output ${{ github.workspace }}/bash-completion-results.md

- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: bash-completion-test-reports
path: |
bash-completion-results.md

# Test release binary on a variety of OS platforms.
os-tests:
strategy:
Expand Down Expand Up @@ -381,7 +425,7 @@ jobs:
with:
path: sources

- name: Download binaries
- name: Download prebuilt brush binaries
uses: actions/download-artifact@v4
with:
name: binaries-x86_64-linux
Expand Down
Loading