Skip to content

Add GitHub actions workflow for linting/formatting/testing #1

Add GitHub actions workflow for linting/formatting/testing

Add GitHub actions workflow for linting/formatting/testing #1

Workflow file for this run

name: Test AIMA

Check failure on line 1 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

`pull_requests` is not a valid event name
on:
push:
branches:
- "main"
pull_requests:
branches:
- "main"
jobs:
build:
runs-on: self-hosted
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Lint/format with ruff
uses: chartboost/ruff-action@v1
with:
args: 'format --check'
- name: Test with pytest
run: |
pytest