mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-19 06:38:04 +00:00
feat(ci): separate metadata-ingestion into a separate workflow (#2828)
This commit is contained in:
parent
6ef0bf0dfd
commit
1b4788537d
12
.github/workflows/build-and-test.yml
vendored
12
.github/workflows/build-and-test.yml
vendored
@ -49,6 +49,18 @@ jobs:
|
|||||||
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
|
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||||
channel: github-activities
|
channel: github-activities
|
||||||
|
|
||||||
|
metadata-ingestion:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: "3.8"
|
||||||
|
- name: Install dependencies
|
||||||
|
run: ./metadata-ingestion/scripts/install_deps.sh
|
||||||
|
- name: Run metadata-ingestion tests
|
||||||
|
run: ./gradlew :metadata-ingestion:testFull -x :metadata-ingestion:codegen
|
||||||
|
|
||||||
smoke-test:
|
smoke-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -41,14 +41,19 @@ task lintFix(type: Exec, dependsOn: installDev) {
|
|||||||
"mypy src/ tests/"
|
"mypy src/ tests/"
|
||||||
}
|
}
|
||||||
|
|
||||||
task test(type: Exec, dependsOn: installDev) {
|
task testQuick(type: Exec, dependsOn: installDev) {
|
||||||
|
// We can't enforce the coverage requirements if we run a subset of the tests.
|
||||||
|
commandLine 'bash', '-x', '-c',
|
||||||
|
"source ${venv_name}/bin/activate && pytest -m 'not slow' -vv --cov-fail-under 0"
|
||||||
|
}
|
||||||
|
task testFull(type: Exec, dependsOn: installDev) {
|
||||||
commandLine 'bash', '-x', '-c',
|
commandLine 'bash', '-x', '-c',
|
||||||
"source ${venv_name}/bin/activate && pytest -vv"
|
"source ${venv_name}/bin/activate && pytest -vv"
|
||||||
}
|
}
|
||||||
|
|
||||||
build.dependsOn install
|
build.dependsOn install
|
||||||
check.dependsOn lint
|
check.dependsOn lint
|
||||||
check.dependsOn test
|
check.dependsOn testQuick
|
||||||
|
|
||||||
clean {
|
clean {
|
||||||
delete venv_name
|
delete venv_name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user