[Snyk] Security upgrade nginx from 1.23 to 1.27 #61
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
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.10' | |
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 |