-
Notifications
You must be signed in to change notification settings - Fork 14
39 lines (31 loc) · 1004 Bytes
/
tests.yaml
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
name: Test the library
on:
pull_request:
types: [opened, synchronize, edited]
jobs:
run_tests:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- name: Checkout 🔁
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} 🐍
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Firestore emulator 🚧
run: |
# with at least 13.5.1 and 13.6.0 tests can't connect to the emulator
npm install -g [email protected]
- name: Start Firestore emulator 🚦
run: |
./start_emulator.sh > /dev/null 2>&1 &
- name: Install Poetry and pre-commit 💈
run: pip install poetry pre-commit
- name: Install dependencies 🛠
run: poetry install
- name: Run tests 🌈
run: poetry run invoke test