Skip to content

Commit

Permalink
Add cirun to feature
Browse files Browse the repository at this point in the history
  • Loading branch information
khintz authored Jun 3, 2024
1 parent 9d558d1 commit f75bd53
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .cirun.yml
Original file line number Diff line number Diff line change
@@ -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/<workflow-name>.yml
# So that this runner is created for running the workflow
labels:
- "cirun-aws-runner"
33 changes: 33 additions & 0 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: tests

on: [push, pull_request]

jobs:
tests:
runs-on: "cirun-aws-runner--${{ github.run_id }}"
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install pdm
run: |
python -m pip install pdm
pdm --version
- name: Install torch
run: |
python -m pip install torch==1.8.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: Install package (including dev dependencies)
run: |
pdm install
pdm install --dev
# - name: Run tests
# run: |
# pdm run pytest --nbval-lax

0 comments on commit f75bd53

Please sign in to comment.