-
Notifications
You must be signed in to change notification settings - Fork 324
48 lines (45 loc) · 1.07 KB
/
pr.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
41
42
43
44
45
46
47
48
name: Cheshire-Cat Action on Pull Requests
on:
pull_request:
branches:
- "main"
- "develop"
push:
branches:
- "main"
- "develop"
jobs:
pylint:
name: "Coding Standards"
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./core
strategy:
matrix:
python-version: ["3.10"]
steps:
- name: Download
uses: actions/checkout@v3
- name: Prepare Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: pyproject.toml
- name: Download python dependencies
run: pip install .[dev]
- name: Pylint
run: pylint -f actions ./
test:
needs: [ pylint ]
name: "Run Tests"
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v2
- name: Cat up
run: docker-compose up -d
- name: Test
run: docker exec cheshire_cat_core python -m pytest --color=yes .
- name: Cat down
run: docker-compose down