-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (34 loc) · 909 Bytes
/
codestyle.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: codestyle
# Controls when the workflow will run
on:
# Triggers the workflow on pull request and release events
pull_request:
release:
types: [published]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
linters:
strategy:
matrix:
python-version: ['3.8']
os: [macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
default: true
- name: Install Python packages
run: |
pip install -r ./requirements/style.txt
- name: Code Style Check
run: |
cd tests
sh codestyle.sh