Skip to content

Commit

Permalink
start with GH Actions integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jensens committed Dec 9, 2024
1 parent 39f93ca commit a888bf7
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 4 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/integrationtests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Integration Tests

on:
- push

jobs:
build:
runs-on: ubuntu-latest
environment:
name: Integration-Tests
url: https://pypi.org/edutap-eu/edutap.wallet_google/
if: github.ref_name == github.event.repository.default_branch
steps:
- uses: actions/checkout@v4
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v4
with:
python-version: '3.13'
enable-cache: true
cache-dependency-glob: |
pyproject.toml
- name: Install dependencies
run: uv tool install --with "tox-uv,tox-gh-actions" tox
- name: Test with tox
env:
EDUTAP_WALLET_GOOGLE_CREDENTIALS_FILE: edutap-wallet-google-credentials.json
EDUTAP_WALLET_GOOGLE_ISSUER_ID: ${{ secrets.ISSUER_ID }}
EDUTAP_WALLET_GOOGLE_INTEGRATION_TEST_PREFIX: ${{ GITHUB_RUN_ID }}

run: |
echo "${{ secrets.SERVICE_ACCOUNT_JSON }}" > $EDUTAP_WALLET_GOOGLE_CREDENTIALS_FILE
tox -m integration
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI Tests
name: Unit Tests

on:
- push
Expand Down
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ classifiers = [
"Operating System :: OS Independent",
]
dependencies = [
"pydantic[email]>=2.0",
"pydantic-settings",
"cryptography",
"fastapi",
"google-auth",
"google-cloud-storage",
"pydantic-settings",
"pydantic[email]>=2.0",
]

[project.urls]
Expand Down

0 comments on commit a888bf7

Please sign in to comment.