-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (29 loc) · 1.01 KB
/
style.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
# This workflow runs automatic code style checks.
# We need a workflow name to be able to schedule it from Github UI
name: style
on:
# Triggers the workflow on push to main
push:
branches:
- main
# Triggers the workflow on any PR
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
# The job ID has to match repo settings for PR required checks
style:
runs-on: ubuntu-latest
# Run jobs for a couple of Python versions.
strategy:
matrix:
python: ["3.9"]
name: Style - Python ${{ matrix.python }}
steps:
- uses: actions/checkout@v2
# ------------------------------------------------------------------------
# Loads private SSH key to the SSH agent. Allows to install dependencies
# from private git repos, but requires setting `secrets.SSH_PRIVATE_KEY`
# in repo settings.
# ------------------------------------------------------------------------
- uses: ./actions/style