-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
06ae748
commit 3f97b47
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,20 +14,35 @@ jobs: | |
black: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dorny/paths-filter@v3 | ||
id: filter | ||
with: | ||
filters: | | ||
sf: | ||
- pennylane_sf/** | ||
- tests/** | ||
- .pylintrc | ||
- Makefile | ||
- requirements-ci.txt | ||
- requirements.txt | ||
- setup.py | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Set up Python | ||
if: steps.filter.outputs.sf == 'true' | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install dependencies | ||
if: steps.filter.outputs.sf == 'true' | ||
run: pip install black | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Run Black | ||
if: steps.filter.outputs.sf == 'true' | ||
run: black -l 100 pennylane_sf/ --check |