This commit is contained in:
@@ -2,34 +2,26 @@ name: CI
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches: [main]
|
||||||
- main
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches: [main]
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- run: |
|
||||||
uses: actions/checkout@v4
|
git clone --depth 1 https://github.com/${{ gitea.repository }}.git .
|
||||||
|
git fetch origin 'refs/heads/main':refs/heads/main
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
run: |
|
||||||
with:
|
apt-get update && apt-get install -y python3 python3-pip
|
||||||
python-version: '3.11'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install -e .
|
pip3 install -e .
|
||||||
pip install pytest pytest-cov
|
pip3 install pytest pytest-cov
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: pytest confsync/tests/ -v --tb=short
|
run: pytest confsync/tests/ -v --tb=short
|
||||||
|
|
||||||
- name: Run linter
|
|
||||||
run: pip install ruff && ruff check .
|
|
||||||
|
|
||||||
- name: Run type checker
|
|
||||||
run: pip install mypy && mypy confsync/
|
|
||||||
|
|||||||
Reference in New Issue
Block a user