Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat(CI): Containerized CI for Glue Unit Tests #4

Merged
merged 4 commits into from
Dec 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,16 @@ on:
jobs:
run-ci:
runs-on: ubuntu-latest
container:
image: dipanshuwed/glue4.0
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10.12

- name: Install dependencies
run: |
pip install mypy==1.7.1 pylint==3.0.2 pyspark==3.3.0 coverage
pip3 install mypy pylint coverage
yum install jq -y # jq is required for sonar

- name: Type check
run: mypy ./ --ignore-missing-imports
Expand All @@ -32,7 +30,9 @@ jobs:
run: coverage run --source=app -m unittest discover -s app/tests/

- name: Test coverage report
run: coverage xml
run: |
coverage report
coverage xml

- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
Expand Down