Skip to content

Commit

Permalink
Switch to just one job for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyandrewmeyer committed Jul 28, 2024
1 parent 5a48bc4 commit 79838e5
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions .github/workflows/tiobe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,35 @@ name: TIOBE Quality Checks
on: [pull_request]

jobs:
tics-report:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5

- name: Install dependencies
run: pip install pylint flake8 tox~=4.2 coverage[toml]

# We could store the report from the regular run, but this is cheap to do and keeps this isolated.
- name: Generate coverage report
run: |
tox -e unit
coverage xml
# Annoyingly, the coverage.xml file needs to be in a .coverage folder.
rm .coverage
mkdir .coverage
mv coverage.xml .coverage/
- name: Produce TICS report
shell: bash
run: |
set -x
export TICSAUTHTOKEN=${{ secrets.TICS_AUTH_TOKEN }}
curl --silent --show-error "https://canonical.tiobe.com/tiobeweb/TICS/api/public/v1/fapi/installtics/Script?cfg=default&platform=linux&url=https://canonical.tiobe.com/tiobeweb/TICS/" > install_tics.sh
. ./install_tics.sh
TICSQServer -project operator -branchdir .
# tics-report:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
#
# - name: Set up Python
# uses: actions/setup-python@v5
#
# - name: Install dependencies
# run: pip install pylint flake8 tox~=4.2 coverage[toml]
#
# # We could store the report from the regular run, but this is cheap to do and keeps this isolated.
# - name: Generate coverage report
# run: |
# tox -e unit
# coverage xml
# # Annoyingly, the coverage.xml file needs to be in a .coverage folder.
# rm .coverage
# mkdir .coverage
# mv coverage.xml .coverage/
#
# - name: Produce TICS report
# shell: bash
# run: |
# set -x
# export TICSAUTHTOKEN=${{ secrets.TICS_AUTH_TOKEN }}
# curl --silent --show-error "https://canonical.tiobe.com/tiobeweb/TICS/api/public/v1/fapi/installtics/Script?cfg=default&platform=linux&url=https://canonical.tiobe.com/tiobeweb/TICS/" > install_tics.sh
# . ./install_tics.sh
# TICSQServer -project operator -branchdir .

TICS:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 79838e5

Please sign in to comment.