36 lines
732 B
YAML
36 lines
732 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Test
|
|
run: |
|
|
pip install --upgrade pip
|
|
pip install pytest
|
|
pip install -r /app/requirements.txt
|
|
pytest /app/tests/ -v
|
|
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Lint
|
|
run: |
|
|
pip install ruff
|
|
ruff check /app/
|
|
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
needs: test
|
|
steps:
|
|
- name: Build
|
|
run: |
|
|
pip install -r /app/requirements.txt
|
|
python -c "from man_card import cli, man_parser, card_generator, templates, config; print('All modules import successfully')"
|