Skip to content

rocMLIR Weekly Sync 2024-04-18 #48

rocMLIR Weekly Sync 2024-04-18

rocMLIR Weekly Sync 2024-04-18 #48

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python application
on:
#push:
# branches: [ main ]
pull_request:
branches: [main]
types: [opened, synchronize, closed]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GH_TEST_TOKEN }}
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install colorama tabulate
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Some commands
run: |
pwd
python --version
date > list.txt
pip list >> list.txt
git config --global user.email "[email protected]"
git config --global user.name "compy"
#git add .
#git commit -m "List update"
#git push
- id: get-comment-body
run: |
body="$(cat /home/runner/work/testing/testing/test.md)"
body="${body//'%'/'%25'}"
body="${body//$'\n'/'%0A'}"
body="${body//$'\r'/'%0D'}"
echo "::set-output name=body::$body"
- name: Create or Update Comment
# You may pin to the exact commit or the version.
# uses: peter-evans/create-or-update-comment@c9fcb64660bc90ec1cc535646af190c992007c32
uses: peter-evans/[email protected]
id: couc
with:
# GITHUB_TOKEN or a repo scoped PAT.
token: ${{ secrets.GH_TEST_TOKEN }}
# The full name of the repository in which to create or update a comment.
#repository: # optional
# The number of the issue or pull request in which to create a comment.
issue-number: 2
# The id of the comment to update.
#comment-id: # optional
# The comment body.
body: ${{ steps.get-comment-body.outputs.body }}
# The mode when updating a comment, "replace" or "append".
#edit-mode: # optional
# Deprecated in favour of `reactions`
#reaction-type: # optional
# A comma separated list of reactions to add to the comment.
#reactions: # optional
- name: Check outputs
run: |
echo "Comment ID - ${{ steps.couc.outputs.comment-id }}"
- name: Sticky
uses: marocchino/sticky-pull-request-comment@v2
with:
GITHUB_TOKEN: ${{ secrets.GH_TEST_TOKEN }}
#message:
# ${{ steps.get-comment-body.outputs.body }}
path: ${{github.workspace}}/results.md