Skip to content

Commit 447ff24

Browse files
authored
Merge pull request #28 from FusionAuth/jj/python-3.10
upgrade to python 3.12, test versions 3.8 - 3.12
2 parents 957d48f + 8e5194b commit 447ff24

4 files changed

Lines changed: 28 additions & 13 deletions

File tree

.github/workflows/test.yaml

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,58 @@
11
# Run locally with act:
22
#
3-
# act pull_request \
4-
# --platform fusionauth-standard=[ecr-repo-name]/fusionauth-standard:latest] \
5-
# --workflows ./.github/workflows/test.yaml
3+
# act pull_request --workflows .github/workflows/test.yaml
64

75
name: Test
86

97
on:
108
push:
119
branches:
1210
- main
11+
- develop
1312
pull_request:
1413
branches:
1514
- main
15+
- develop
1616
workflow_dispatch:
1717

1818
jobs:
1919
run_tests:
20-
runs-on: fusionauth-standard
20+
runs-on: ubuntu-latest
21+
strategy:
22+
matrix:
23+
version:
24+
- '3.8'
25+
- '3.9'
26+
- '3.10'
27+
- '3.11'
28+
- '3.12'
2129
env:
2230
FUSIONAUTH_URL: http://localhost:9011
2331
FUSIONAUTH_API_KEY: bf69486b-4733-4470-a592-f1bfce7af580
2432
steps:
2533
- uses: actions/checkout@v4
2634

35+
- uses: actions/setup-python@v5
36+
with:
37+
python-version: ${{ matrix.version }}
38+
2739
- name: Set up FusionAuth
2840
working-directory: src/test/docker
2941
run: docker compose up -d
3042

31-
- name: Install fusionauth library
32-
shell: bash -l {0}
33-
run: pip3 install .
34-
3543
- name: Check to see if FusionAuth is loaded
3644
run: |
3745
bash ./src/test/docker/poll-for-kickstart-finish.sh
3846
3947
- name: Run tests
4048
shell: bash -l {0}
4149
run: |
42-
python3 src/test/python/fusionauth/rest_client_test.py
43-
python3 src/test/python/fusionauth/fusionauth_client_test.py
50+
python3 -m venv .venv
51+
source .venv/bin/activate
52+
echo -e "\nUsing $(python --version) in $(which python)\n"
53+
pip install -e .
54+
echo ""
55+
pip list
56+
echo ""
57+
python src/test/python/fusionauth/rest_client_test.py
58+
python src/test/python/fusionauth/fusionauth_client_test.py

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.8.13
1+
3.12.6

fusionauth-python-client.iml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<excludeFolder url="file://$MODULE_DIR$/build" />
1111
<excludeFolder url="file://$MODULE_DIR$/dist" />
1212
</content>
13-
<orderEntry type="jdk" jdkName="Python 3.8" jdkType="Python SDK" />
13+
<orderEntry type="jdk" jdkName="Python 3.12" jdkType="Python SDK" />
1414
<orderEntry type="sourceFolder" forTests="false" />
1515
</component>
1616
</module>

src/test/docker/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
db:
3-
image: postgres:16.0-alpine
3+
image: postgres:16.4-alpine
44
environment:
55
PGDATA: /var/lib/postgresql/data/pgdata
66
POSTGRES_USER: postgres

0 commit comments

Comments
 (0)