-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (32 loc) · 846 Bytes
/
ci.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
name: ci
on:
push:
branches: [ develop, main ]
pull_request:
branches: [ develop, main ]
schedule:
# run once per week in case of change of ktfmt URL
- cron: '41 4 * * 0'
workflow_dispatch:
jobs:
desktop:
name: Test ktfmtprecommithook
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Install Python Poetry
run: |
python3 -m pip install poetry
- name: Run pytest tests
run: |
poetry install && poetry run pytest tests
- name: Run pre-commit hooks
run: |
poetry run pre-commit install \
&& poetry run pre-commit run --all-files