Skip to content

test: test_deploy_log_deployed_resources #207

test: test_deploy_log_deployed_resources

test: test_deploy_log_deployed_resources #207

Workflow file for this run

# .github/workflows/ci-cd.yml
on:
pull_request: {}
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
kedro_version: ["0.19.7", "0.19.8"]
steps:
- uses: actions/checkout@v4
- uses: eifinger/setup-rye@v3
id: setup-rye
with:
version: "0.42.0"
cache-prefix: ${{ matrix.python-version }}
- name: Pin python-version ${{ matrix.python-version }}
run: rye pin ${{ matrix.python-version }}
- name: Install dependencies
run: rye sync --no-lock
- name: Install kedro
run: rye add kedro==${{ matrix.kedro_version }}
- name: Lint code
run: rye lint
- name: Run Unit tests
run: |
source .venv/bin/activate
rye test -- ./tests/unit --coverage-xml=coverage.xml
- name: Upload coverage
uses: codecov/codecov-action@v2
with:
file: coverage.xml
fail_ci_if_error: true
- name: Upload coverage to Code Climate
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter format-coverage -t lcov -o coverage/codeclimate.json coverage/lcov.info
./cc-test-reporter upload-coverage
env:
CC_TEST_REPORTER_ID: da3f5759a5a5a6d46a177034edb82b7874d2936d886cc66e7ad09639498213af
GIT_BRANCH: $(Build.SourceBranchName)
GIT_COMMIT: $(Build.SourceVersion)