-
Notifications
You must be signed in to change notification settings - Fork 10
53 lines (44 loc) · 1.13 KB
/
integration_test.yml
File metadata and controls
53 lines (44 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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-24.04
python:
- "3.11"
runs-on: ${{ matrix.os }}
steps:
- name: Setup Git
uses: frequenz-floss/gh-action-setup-git@v0.x.x
- 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