-
Notifications
You must be signed in to change notification settings - Fork 8
32 lines (29 loc) · 898 Bytes
/
test.yml
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
name: Test eqalert
on: push
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.9.16"
- name: Install poetry
run: |
pipx install poetry=="1.7.1"
- name: Define a cache for the virtual environment based on the dependencies lock file
uses: actions/cache@v4
with:
path: ./.venv
key: venv-dev-${{ hashFiles('poetry.lock') }}
- name: Manual pip installs
run: |
poetry run pip install --upgrade pip
poetry run pip install --upgrade wheel
poetry run pip install playsound
- name: Install Python deps
run: poetry install
- name: Run Tests
run: poetry run pytest