-
Notifications
You must be signed in to change notification settings - Fork 7
43 lines (34 loc) · 1.17 KB
/
momento-local-tests.yml
File metadata and controls
43 lines (34 loc) · 1.17 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
name: Momento Local tests
on:
pull_request:
branches: [main]
jobs:
local-tests:
strategy:
matrix:
os: [ubuntu-24.04]
python-version: ["3.13"]
runs-on: ${{ matrix.os }}
env:
MOMENTO_API_KEY: ${{ secrets.ALPHA_API_KEY_V2 }}
MOMENTO_ENDPOINT: "cell-alpha-dev.preprod.a.momentohq.com"
V1_API_KEY: ${{ secrets.ALPHA_TEST_AUTH_TOKEN }}
TEST_CACHE_NAME: python-integration-test-${{ matrix.python-version }}-${{ matrix.new-python-protobuf }}-${{ github.sha }}
steps:
- uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 1.3.1
virtualenvs-in-project: true
- name: Install dependencies
run: poetry install
- name: Start Momento Local
run: |
docker run --cap-add=NET_ADMIN --rm -d -p 8080:8080 -p 9090:9090 gomomento/momento-local --enable-test-admin
- name: Run tests
run: poetry run pytest -p no:sugar -q -m local