Skip to content

chore(deps): lock file maintenance #543

chore(deps): lock file maintenance

chore(deps): lock file maintenance #543

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Test
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "^3.0"
architecture: "x64"
- uses: actions/cache@v4
with:
key: ${{ runner.os }}-${{ hashFiles('./requirements.txt') }}
path: |
~/.cache/pypoetry
~/.cache/pip
./.tox
- name: Download coverage
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 \
-o ./cc-test-reporter
chmod +x ./cc-test-reporter
- name: Install dependencies
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry install
- name: Test & Send Coverage
run: |
export GIT_COMMITTED_AT=$(date +%s)
./cc-test-reporter before-build
poetry run -- tox -p all -q
export TEST_RESULT=${?}
export GIT_BRANCH=${{ github.ref_name }}
echo $GIT_BRANCH
poetry run -- coverage xml
./cc-test-reporter after-build --exit-code $TEST_RESULT -t coverage.py
env:
GIT_COMMIT_SHA: ${{ github.sha }}
CI_NAME: "Github Action"
CI_BUILD_ID: ${{ github.run_number }}
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}