-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 872 Bytes
/
test.yml
File metadata and controls
31 lines (29 loc) · 872 Bytes
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
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
cache-dependency-path: backend/requirements.txt
- name: Install dependencies
run: pip install -r backend/requirements.txt
- name: Generate synthetic data (wells GeoJSON is committed; observations CSV are not)
working-directory: backend
run: |
python -m data_generator.generate_wells
python -m data_generator.generate_timeseries
- name: Run pytest
working-directory: backend
env:
GEMINI_API_KEY: test-key
OPENROUTER_API_KEY: test-key
run: python -m pytest tests/ -v --tb=short