-
Notifications
You must be signed in to change notification settings - Fork 21
42 lines (33 loc) · 1.22 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
38
39
40
41
42
# 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", "3.10", "3.11"]
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: ./subtrees/z_quantum_actions/actions/ssh_setup
# with:
# ssh_key: ${{ secrets.SSH_PRIVATE_KEY }}
# Installs project, checks codestyle
- uses: ./subtrees/z_quantum_actions/actions/style