diff --git a/.github/workflows/gha-metrics.yml b/.github/workflows/gha-metrics.yml index 8019838..d4f127a 100644 --- a/.github/workflows/gha-metrics.yml +++ b/.github/workflows/gha-metrics.yml @@ -1,4 +1,4 @@ -name: Post metrics comment +name: Python tests on: [pull_request] @@ -8,10 +8,10 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9"] + python-version: ["3.8", "3.9"] steps: - - uses: actions/checkout@v3 + # - uses: actions/checkout@v3 # with: # submodules: recursive # ssh-key: ${{ secrets.PSPTOOL_FIXTURES_NEW_PRIVATE_KEY }} @@ -25,12 +25,12 @@ jobs: pip install . - name: ... run: | - python tests/gha_metrics.py > metrics.md - gh pr comment $PRNUM --body-file metrics.md - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GH_REPO: ${{ github.repository }} - PRNUM: ${{ github.event.pull_request.number }} + PR_NUMBER=${{ github.event.pull_request.number }} + COMMENT="Your checklist comment here" + GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} + COMMENT_URL="https://api.github.com/repos/${{ github.repository }}/issues/${PR_NUMBER}/comments" + COMMENT="Test comment" + curl -s -H "Authorization: token ${GITHUB_TOKEN}" -X POST $COMMENT_URL -d "{\"body\":\"$COMMENT\"}" # - name: Run metrics # run: | diff --git a/test b/test new file mode 100644 index 0000000..68a4528 --- /dev/null +++ b/test @@ -0,0 +1 @@ +this is a test file \ No newline at end of file