forked from scidsg/hushline
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 839 Bytes
/
tests.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
33
34
35
36
37
38
39
40
---
name: Run Tests
on:
push:
pull_request:
branches:
- main
jobs:
run-lint-and-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.12'
- uses: actions/checkout@v4
- name: Install Poetry
run: pip install poetry
- name: Cache Python dependencies
uses: actions/cache@v3
with:
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
${{ runner.os }}-poetry-
path: |
~/.cache/pypoetry
- name: Install Python dependencies
run: poetry install
- name: Lint
run: poetry run make lint
- name: Test
run: poetry run make test