From c2b7360fe65156c222590842100f7a815af787d1 Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Tue, 10 Jan 2023 23:11:02 +0000 Subject: [PATCH] fix CI, update deps (#28) --- .github/workflows/ci.yml | 17 ++++++----------- requirements.txt | 29 +++++++++++++++++++++++++++-- 2 files changed, 33 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 975e667..e1214b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,7 @@ jobs: - name: Check out repository code uses: actions/checkout@v3 with: + ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 - name: Setup Python uses: actions/setup-python@v4 @@ -27,20 +28,14 @@ jobs: run: pip install -r requirements.txt && pip install -r requirements-dev.txt - name: Lint run: pylint --recursive=yes --output-format=parseable --output=lintreport.txt . || pylint-exit $? - - name: Run test suite + continue-on-error: true + - name: Unit Test run: | - coverage run -m py.test -v --junitxml=testresults.xml + coverage run -m pytest -v --junitxml=testresults.xml coverage xml + sed -i 's/\/home\/runner\/work\/pypilot\/pypilot/\/github\/workspace/g' coverage.xml - name: SonarCloud Scan uses: SonarSource/sonarcloud-github-action@master env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_CLOUD }} - # - uses: sonarsource/sonarqube-scan-action@master - # env: - # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - # SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} - # - uses: sonarsource/sonarqube-quality-gate-action@master - # timeout-minutes: 5 - # env: - # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/requirements.txt b/requirements.txt index 21277d2..80a5b74 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,31 @@ -certifi==2022.9.24 +astroid==2.12.13 +attrs==22.2.0 +black==22.12.0 +certifi==2022.12.7 charset-normalizer==2.1.1 +click==8.1.3 +coverage==7.0.0 +dill==0.3.6 +exceptiongroup==1.0.4 idna==3.4 +iniconfig==1.1.1 +isort==5.11.4 +lazy-object-proxy==1.8.0 +mccabe==0.7.0 +mypy-extensions==0.4.3 +packaging==22.0 +pathspec==0.10.3 +platformdirs==2.6.0 +pluggy==1.0.0 +py==1.11.0 +pylint==2.15.9 +pyparsing==3.0.9 +pytest==7.2.0 requests==2.28.1 +requests-mock==1.10.0 +six==1.16.0 tabulate==0.9.0 -urllib3==1.26.12 +tomli==2.0.1 +tomlkit==0.11.6 +urllib3==1.26.13 +wrapt==1.14.1