-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (34 loc) · 897 Bytes
/
tests.yml
File metadata and controls
36 lines (34 loc) · 897 Bytes
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
name: Tests
on:
push:
branches: [ main ]
paths-ignore:
- 'pretix_extended_api/locale/**'
pull_request:
branches: [ main ]
paths-ignore:
- 'pretix_extended_api/locale/**'
jobs:
test:
runs-on: ubuntu-latest
name: Tests
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install pdm
run: pip install pdm
- uses: actions/cache@v1
with:
path: ~/.virtualenvs
key: ${{ runner.os }}-pdm-${{ hashFiles('**/pdm.lock') }}
restore-keys: |
${{ runner.os }}-pdm-
- name: Install system dependencies
run: sudo apt update && sudo apt install gettext
- name: Install Dependencies
run: pdm install
- name: Run checks
run: pdm run pytest tests