Skip to content

Commit

Permalink
Improve wf (#133)
Browse files Browse the repository at this point in the history
* Update testing.yml

* Create flake8.yml

* Update testing.yml

remove flake8

* Update flake8.yml
  • Loading branch information
gcattan authored May 30, 2023
1 parent ca98681 commit bb61912
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This workflow lints with flake8

name: Flake8

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Lint with flake8
run: |
pip install flake8
flake8 examples tests pyriemann_qiskit
8 changes: 5 additions & 3 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,17 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache dependencies ${{ matrix.python-version }}
uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Install package
run: |
python -m pip install .[tests]
- name: Lint with flake8
run: |
flake8 examples tests pyriemann_qiskit
- name: Test with pytest
env:
FIREBASE_CERTIFICATE: ${{ secrets.FIREBASE_CERTIFICATE }}
Expand Down

0 comments on commit bb61912

Please sign in to comment.