This commit is contained in:
@@ -1,35 +1,9 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on:
|
on: [push, pull_request]
|
||||||
push:
|
|
||||||
branches: [ main ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ main ]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Test
|
- run: pip install pytest && pip install -r requirements.txt && pytest tests/ -v
|
||||||
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')"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user