Skip to content

Commit

Permalink
Updated workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
ritwik-g committed Jun 11, 2024
1 parent 819baba commit 81ca56d
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/ci-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,23 @@ jobs:
with:
python-version: '3.9'

- name: Install tox
run: pip install tox

- name: Cache tox environments
uses: actions/cache@v3
with:
path: .tox/
key: ${{ runner.os }}-tox-${{ hashFiles('**/pyproject.toml', '**/tox.ini') }}
restore-keys: |
${{ runner.os }}-tox-
- name: Install tox
run: pip install tox

- name: Run tox
id: tox
run: tox | tee tox_output.txt

- name: Read tox output
id: read-output
run: echo "result=$(cat tox_output.txt)" >> $GITHUB_OUTPUT
run: tox

- name: Create comment
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.pull_request.number }}
body: ${{ steps.read-output.outputs.result }}
body-path: './.tox/worker/log/4-commands[0].log'

0 comments on commit 81ca56d

Please sign in to comment.