@@ -13,21 +13,39 @@ jobs:
1313 strategy :
1414 fail-fast : false
1515 matrix :
16- python-version : [ '3.10', '3.11' ]
16+ python-version : [ '3.10', '3.11', '3.12' ]
1717 os : [ ubuntu-latest ]
18+ vaultwarden-version : [ '1.30.5', '1.31.0' , '1.32.0']
1819 runs-on : ${{ matrix.os }}
1920 steps :
2021 - uses : actions/checkout@v3
22+ with :
23+ lfs : true
2124 - name : Setup Python ${{ matrix.python-version }}
2225 uses : actions/setup-python@v4
2326 with :
2427 python-version : ${{ matrix.python-version }}
2528 - name : Install dependencies
2629 run : |
2730 python -m pip install --upgrade hatch
31+ - name : Run Vaultwarden server
32+ run : |
33+ temp_dir=$(mktemp -d)
34+ cp ${{ github.workspace }}/tests/fixtures/server/* $temp_dir
35+ docker run -d --name vaultwarden -v $temp_dir:/data --env I_REALLY_WANT_VOLATILE_STORAGE=true --env ADMIN_TOKEN=admin --restart unless-stopped -p 80:80 vaultwarden/server:${{ matrix.vaultwarden-version }}
2836 - name : Run tests
2937 run : |
3038 hatch run +py=${{ matrix.py || matrix.python-version }} test:with-coverage
39+ env :
40+ VAULTWARDEN_URL : " http://127.0.0.1:80"
41+ VAULTWARDEN_ADMIN_TOKEN : " admin"
42+ BITWARDEN_URL : " http://127.0.0.1:80"
43+ BITWARDEN_EMAIL : " test-account@example.com"
44+ BITWARDEN_PASSWORD : " test-account"
45+ BITWARDEN_CLIENT_ID : " user.a8be340c-856b-481f-8183-2b7712995da2"
46+ BITWARDEN_CLIENT_SECRET : " ag66paVUq4h7tBLbCbJOY5tJkQvUuT"
47+ BITWARDEN_TEST_ORGANIZATION : " cda840d2-1de0-4f31-bd49-b30dacd7e8b0"
48+ BITWARDEN_DEVICE_ID : " e54ba5f5-7d58-4830-8f2b-99194c70c14f"
3149
3250 lint :
3351 runs-on : ubuntu-latest
0 commit comments