-
Notifications
You must be signed in to change notification settings - Fork 11
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
660c4db
commit 1d5db30
Showing
4 changed files
with
52 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: CI Tests | ||
|
||
# Controls when the workflow will run | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
changes: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
backend: ${{ steps.filter.outputs.backend }} | ||
frontend: ${{ steps.filter.outputs.frontend }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dorny/paths-filter@v2 | ||
id: filter | ||
with: | ||
base: ${{ github.event.inputs.base }} | ||
filters: | | ||
backend: | ||
- 'leaktopus_backend/**' | ||
frontend: | ||
- 'leaktopus_frontend/**' | ||
unit-tests: | ||
needs: [ changes ] | ||
if: ${{ needs.changes.outputs.backend == 'true' }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.9 | ||
cache: 'pip' # caching pip dependencies | ||
|
||
- name: Install dependencies | ||
run: pip install -r leaktopus_backend/requirements.txt | ||
|
||
- name: Run unit tests | ||
run: | | ||
pytest --ignore leaktopus_backend/leaktopus/tests leaktopus_backend/leaktopus |
3 changes: 3 additions & 0 deletions
3
...us_backend/leaktopus/details/scan/potential_leak_source_providers/pastebin/filter_test.py
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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
import pytest | ||
|
||
@pytest.mark.skip(reason="TBC") | ||
def test_should_filter_potential_leak_sources_successfully(): | ||
assert False |
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
File renamed without changes.