Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add integration tests #53

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/integration_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Electricity-Trading-API-Integration-Tests

on:
workflow_dispatch:
release:
types: [published]

env:
DEFAULT_PYTHON_VERSION: '3.11'

jobs:
run-tests:
name: Integration tests
strategy:
fail-fast: false
matrix:
os:
- ubuntu-20.04
python:
- "3.11"
runs-on: ${{ matrix.os }}

steps:
- name: Setup Git
uses: frequenz-floss/[email protected]

- name: Print environment (debug)
run: env

- name: Fetch sources
uses: actions/checkout@v4
with:
submodules: true

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: 'pip'

- name: Install required Python packages
run: |
python -m pip install --upgrade pip
python -m pip install -e .[dev-pytest]
pip freeze

- name: Run the integration tests
env:
API_KEY: ${{ secrets.API_KEY }}
GRIDPOOL_ID: ${{ secrets.GRIDPOOL_ID }}
run: |
pytest -vv integration_tests/
timeout-minutes: 10


2 changes: 2 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* Remove dependency to `googleapis-common-protos`
* Replace `Energy` with `Power` for the `quantity` representation
* Add str function for `DeliveryPeriod` object
* Add integration tests for the API
* Add an equality function to the Order type

## Bug Fixes

Expand Down
Loading
Loading