File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Electricity-Trading-API-Integration-Tests
2+
3+ on :
4+ workflow_dispatch :
5+ release :
6+ types : [published]
7+
8+ env :
9+ DEFAULT_PYTHON_VERSION : ' 3.11'
10+
11+ jobs :
12+ run-tests :
13+ name : Integration tests
14+ strategy :
15+ fail-fast : false
16+ matrix :
17+ os :
18+ - ubuntu-20.04
19+ python :
20+ - " 3.11"
21+ runs-on : ${{ matrix.os }}
22+
23+ steps :
24+ - name : Setup Git
25+ uses :
frequenz-floss/[email protected] 26+
27+ - name : Print environment (debug)
28+ run : env
29+
30+ - name : Fetch sources
31+ uses : actions/checkout@v4
32+ with :
33+ submodules : true
34+
35+ - name : Set up Python
36+ uses : actions/setup-python@v5
37+ with :
38+ python-version : ${{ matrix.python }}
39+ cache : ' pip'
40+
41+ - name : Install required Python packages
42+ run : |
43+ python -m pip install --upgrade pip
44+ python -m pip install -e .[dev-pytest]
45+ pip freeze
46+
47+ - name : Run the integration tests
48+ env :
49+ API_KEY : ${{ secrets.API_KEY }}
50+ GRIDPOOL_ID : ${{ secrets.GRIDPOOL_ID }}
51+ run : |
52+ pytest -vv integration_tests/
53+ timeout-minutes : 10
54+
55+
You can’t perform that action at this time.
0 commit comments