Skip to content

Commit

Permalink
Fix Github Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
TillerBurr committed Dec 12, 2023
1 parent 3a02932 commit f909578
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,18 @@ jobs:
id: filter
with:
filters: |
src:
changed:
- 'tests/**'
- 'src/**'
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"

lint:
runs-on: ubuntu-latest
needs: changes
if: ${{needs.changes.outputs.src == 'true'}}
if: ${{needs.changes.outputs.changed == 'true'}}
steps:
- uses: actions/checkout@v3
- name: Install rye
Expand All @@ -45,7 +50,7 @@ jobs:
tests:
runs-on: ubuntu-latest
needs: [changes, lint]
if: ${{needs.changes.outputs.src == 'true'}}
if: ${{needs.changes.outputs.changed == 'true'}}
strategy:
matrix:
python-version: [3.8, 3.9, "3.10","3.11","3.12"]
Expand Down

0 comments on commit f909578

Please sign in to comment.