Skip to content

Tests on ted-data staging server #470

Tests on ted-data staging server

Tests on ted-data staging server #470

name: Tests on ted-data staging 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: platon
steps:
- uses: actions/checkout@v3
- 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@v3
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: 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