Skip to content

Commit

Permalink
test: run bash-completion tests
Browse files Browse the repository at this point in the history
  • Loading branch information
reubeno committed Dec 15, 2024
1 parent d695bdc commit 76ae014
Showing 1 changed file with 45 additions and 1 deletion.
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

0 comments on commit 76ae014

Please sign in to comment.