Skip to content

fix: setup Python env for tiobe ci #14

fix: setup Python env for tiobe ci

fix: setup Python env for tiobe ci #14

Workflow file for this run

name: TICS
on:
push:
branches:
- main
jobs:
CI:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:

Check failure on line 14 in .github/workflows/tics.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/tics.yaml

Invalid workflow file

You have an error in your yaml syntax on line 14
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
echo "::group::apt-get update"
sudo apt-get update
echo "::endgroup::"
echo "::group::apt-get install..."
sudo apt-get install -y libapt-pkg-dev libyaml-dev xdelta3 patchelf
echo "::endgroup::"
echo "::group::pip install"
python -m pip install 'tox<5.0' tox-gh
echo "::endgroup::"
- name: Setup Tox environment
run: tox run-parallel --parallel auto --parallel-no-spinner --parallel-live --colored yes -e test-all-py310 --notest
- name: Test with tox
run: tox run --skip-pkg-install --result-json results/tox-py310.json --colored yes -e test-all-py310
- name: Run TICS analysis
uses: tiobe/tics-github-action@v3
with:
mode: qserver
project: snapcraft
viewerUrl: https://canonical.tiobe.com/tiobeweb/TICS/api/cfg?name=default
ticsAuthToken: ${{ secrets.TICSAUTHTOKEN }}
installTics: true