Update build tests to include keepassxc #24
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: build tests | |
on: [push] | |
jobs: | |
test: | |
name: "Test package" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: NiklasRosenstein/slap@gha/install/v1 | |
with: { version: "1.12.0" } | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: { python-version: "${{ matrix.python-version }}" } | |
- name: Install required keepassxc | |
run: | | |
apt-get -y update | |
apt-get install -y keepassxc | |
- name: Create a venv to operate within using slap-cli | |
run: | | |
slap venv --create tester | |
- name: Install, test and build a package to install | |
run: | | |
slap release --validate | |
slap install --use-venv=tester | |
slap test --use-venv=tester | |
mkdir build-tester | |
slap publish --build-directory build-tester --dry | |
- name: Install the package from whl and run the application | |
run: | | |
pip install build-tester/*.whl | |
env-alias --version |