Skip to content

Commit

Permalink
workflows: Add CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
avdgrinten committed Oct 28, 2024
1 parent b1d7f68 commit c005514
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI

on: [push, pull_request]

jobs:
test:
name: Test y4
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install Python prerequisites
run: |
pip install pytest
- name: Install y4 from checkout
run: |
pip install .
- name: Run y4 pytests
run: |
pytest tests/
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
Y4: A purely functional DSL to process YAML
===

[![CI](https://github.com/managarm/y4/actions/workflows/ci.yml/badge.svg)](https://github.com/managarm/y4/actions/workflows/ci.yml)

0 comments on commit c005514

Please sign in to comment.