From cb34bc07269eb3d056cdceb92bea94dc95698661 Mon Sep 17 00:00:00 2001 From: "K. Hintz" Date: Mon, 3 Jun 2024 12:50:51 +0200 Subject: [PATCH] add ci run --- .cirun.yml | 13 +++++++++++++ .github/workflows/pre-commit.yml | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .cirun.yml diff --git a/.cirun.yml b/.cirun.yml new file mode 100644 index 00000000..f612bc2a --- /dev/null +++ b/.cirun.yml @@ -0,0 +1,13 @@ +runners: + - name: "aws-runner" + # Cloud Provider: AWS + cloud: "aws" + # Cheapest VM on AWS + instance_type: "t2.nano" + # Ubuntu-20.4, ami image + machine_image: "ami-06fd8a495a537da8b" + preemptible: false + # Add this label in the "runs-on" param in .github/workflows/.yml + # So that this runner is created for running the workflow + labels: + - "cirun-aws-runner" \ No newline at end of file diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index dc519e5b..edd53832 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -12,7 +12,7 @@ on: jobs: pre-commit-job: - runs-on: ubuntu-latest + runs-on: "cirun-aws-runner--${{ github.run_id }}" strategy: matrix: python-version: ["3.9", "3.10", "3.11", "3.12"]