Skip to content

Commit 71892a8

Browse files
committed
GitHub Actions CI
1 parent eedea9c commit 71892a8

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: XML dataclasses CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
jobs:
10+
lint:
11+
name: lint
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: [3.7, 3.8]
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v1
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: requirements
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install poetry pre-commit
26+
- name: install
27+
run: |
28+
poetry install
29+
- name: check
30+
run: |
31+
pre-commit run --all-files
32+
poetry run ./lint "CHECK"

0 commit comments

Comments
 (0)