Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add 'make-ci' workflow #84

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/python-make-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Make CI

'on':
workflow_call:
inputs:
timeout_minutes:
description: The maximum time (in minutes) for a job to run.
default: 10
required: false
type: number

jobs:
make-ci:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22.x"
- name: Install prettier
run: yarn add prettier@3
- name: Put node executables in the system PATH
run: echo -n "$(yarn bin)" >> $GITHUB_PATH
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v5
with:
cache: poetry
python-version: "3.12"
- name: Install package
run: poetry install
- name: Run all CI
run: make ci
timeout-minutes: ${{ inputs.timeout_minutes }}