forked from simondschweitzer/aed-tei
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (28 loc) · 806 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
33
34
35
36
37
38
39
---
name: test
on: [push] # yamllint disable-line
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: clone repo
uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: install pipenv
run: python -mpip install pipenv
- name: cache-pipenv
uses: actions/cache@v3
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}
- name: install dependencies
if: steps.cache-pipenv.outputs.cache-hit != 'true'
run: pipenv install --dev
- name: run doctests
run: pipenv run pytest --doctest-modules peret
- name: run linter
run: make lint
...