diff --git a/.github/workflows/unit-tests-srv.yml b/.github/workflows/unit-tests-srv.yml index 617bd7bc..0bbc8a46 100644 --- a/.github/workflows/unit-tests-srv.yml +++ b/.github/workflows/unit-tests-srv.yml @@ -1,71 +1,71 @@ -name: Tests on srv server - -on: - workflow_dispatch: - push: - branches: [ feature/* , main, hotfix/*, release/* ] -# pull_request: -# branches: [ main, release/* ] - -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true - -env: - VAULT_TOKEN: ${{ secrets.VAULT_TOKEN }} - VAULT_ADDR: ${{ secrets.VAULT_ADDR }} - ENVIRONMENT: staging -jobs: - build: - name: pyTest - runs-on: self-hosted - - steps: - - uses: actions/checkout@v2 - - - name: Make envfile - run: make staging-dotenv-file - - - name: Get Saxon - run: make init-saxon - - - name: Get Limes - run: make init-limes - - - name: Get RML mapper - run: make init-rml-mapper - - # - name: Get Allure - # run: make install-allure - - # - name: Start staging infra - # run: make start-project-services - - - name: Run tests - run: make test-all - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v2.1.0 - with: - token: ${{ secrets.CODECOV_TOKEN }} - file: coverage.xml - env_vars: OS,PYTHON - name: codecov-umbrella - fail_ci_if_error: true - - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} -# - name: Clean Mongo DB -# run: make clean-mongo-db +#name: Tests on srv server +# +#on: +# workflow_dispatch: +# push: +# branches: [ feature/* , main, hotfix/*, release/* ] +## pull_request: +## branches: [ main, release/* ] +# +#concurrency: +# group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} +# cancel-in-progress: true +# +#env: +# VAULT_TOKEN: ${{ secrets.VAULT_TOKEN }} +# VAULT_ADDR: ${{ secrets.VAULT_ADDR }} +# ENVIRONMENT: staging +#jobs: +# build: +# name: pyTest +# runs-on: self-hosted +# +# steps: +# - uses: actions/checkout@v2 +# +# - name: Make envfile +# run: make staging-dotenv-file +# +# - name: Get Saxon +# run: make init-saxon +# +# - name: Get Limes +# run: make init-limes +# +# - name: Get RML mapper +# run: make init-rml-mapper +# +# # - name: Get Allure +# # run: make install-allure +# +# # - name: Start staging infra +# # run: make start-project-services +# +# - name: Run tests +# run: make test-all # - name: Upload coverage to Codecov -# uses: codecov/codecov-action@v1 +# uses: codecov/codecov-action@v2.1.0 # with: # token: ${{ secrets.CODECOV_TOKEN }} # file: coverage.xml # env_vars: OS,PYTHON # name: codecov-umbrella # fail_ci_if_error: true - -# - name: start-infra -# run: make stop-project-staging-services \ No newline at end of file +# - name: SonarCloud Scan +# uses: SonarSource/sonarcloud-github-action@master +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any +# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} +## - name: Clean Mongo DB +## run: make clean-mongo-db +## - name: Upload coverage to Codecov +## uses: codecov/codecov-action@v1 +## with: +## token: ${{ secrets.CODECOV_TOKEN }} +## file: coverage.xml +## env_vars: OS,PYTHON +## name: codecov-umbrella +## fail_ci_if_error: true +# +## - name: start-infra +## run: make stop-project-staging-services \ No newline at end of file diff --git a/dags/eforms_notices/fetch_eform_notices_by_date.py b/dags/eforms_notices/fetch_eform_notices_by_date.py index 1c7edab7..4c1f29cf 100644 --- a/dags/eforms_notices/fetch_eform_notices_by_date.py +++ b/dags/eforms_notices/fetch_eform_notices_by_date.py @@ -24,7 +24,7 @@ VALIDATE_FETCHED_NOTICES_TASK_ID = "validate_fetched_notices" -@dag(default_args=DEFAULT_DAG_ARGUMENTS, +@dag(default_args=DEFAULT_DAG_ARGUMENTS, schedule_interval=None, catchup=False, tags=['selector', 'daily-fetch']) def fetch_and_index_eforms_notices_by_date(): @task