Try to read file #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CI workflow that runs on self hosted cluster | |
name: Self-hosted rules | |
on: push | |
jobs: | |
tests: | |
strategy: | |
matrix: | |
platform: ["dummy"] | |
fail-fast: false | |
runs-on: self-hosted | |
steps: | |
- name: Cleanup workspace manually | |
run: | | |
rm -rf _work/* | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ inputs.python-version }} | |
- name: Install and configure poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: false | |
- name: Install qibolab stable | |
run: | | |
python -m venv testenv | |
source testenv/bin/activate | |
python -m pip install qibolab click | |
- name: Execute on ${{ matrix.platform }} queue | |
run: | | |
source testenv/bin/activate | |
PARTITION="$(python queues/queues.py dummy)" | |
srun -p $PARTITION python tests/minimal.py ${{ matrix.platform }} | |
- name: Load dumped report | |
id: report | |
run: | | |
content=`cat tests/output.txt` | |
echo "::set-output name=report::$content" | |
- name: Notify the Pull Request | |
uses: thollander/actions-comment-pull-request@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
message: | | |
Run on QPU `${{ matrix.platform }}` completed! :atom: | |
${{ steps.report.outputs.report }} |