Skip to content

Commit

Permalink
Fixes workflow issue with dependencies and naming
Browse files Browse the repository at this point in the history
  • Loading branch information
xN4P4LM committed Oct 16, 2023
1 parent bba02c1 commit 56dfdae
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements.dev.txt
- name: cache build
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Build package
run: python3 -m build
2 changes: 1 addition & 1 deletion .github/workflows/pylint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
pip install pylint
- name: Lint with Pylint
run: |
find python -type f -name "*.py" | xargs pylint --rcfile
find python -type f -name "*.py" | xargs pylint
4 changes: 2 additions & 2 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements.dev.txt
- name: cache pytest
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Run pytest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ruff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Lint with Ruff
on: [push]

jobs:
pylint:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -14,7 +14,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
npm install -g @ruff/cli
pip install ruff
- name: run ruff lint
run: |
ruff check .

0 comments on commit 56dfdae

Please sign in to comment.