This commit is contained in:
@@ -3,27 +3,37 @@ name: CI
|
|||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
ci:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout code
|
||||||
run: |
|
run: |
|
||||||
git clone https://${{ gitea.server }}/${{ gitea.repository }} .
|
git clone https://${{ gitea.server }}/${{ gitea.repository }} $HOME/repo
|
||||||
|
cd $HOME/repo
|
||||||
git checkout ${{ gitea.sha }}
|
git checkout ${{ gitea.sha }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install Python
|
||||||
run: |
|
run: |
|
||||||
|
python3 -V
|
||||||
pip3 install --upgrade pip
|
pip3 install --upgrade pip
|
||||||
pip3 install pytest ruff
|
|
||||||
pip3 install -e ".[dev]"
|
- name: Install pytest
|
||||||
|
run: |
|
||||||
|
pip3 install pytest
|
||||||
|
pytest --version
|
||||||
|
|
||||||
|
- name: Install project
|
||||||
|
run: |
|
||||||
|
pip3 install click pyyaml rich
|
||||||
|
pip3 install -e .
|
||||||
|
i18n-key-sync --help
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: pytest tests/ -v --tb=short || true
|
run: |
|
||||||
|
cd $HOME/repo
|
||||||
|
pytest tests/ -v --tb=short || true
|
||||||
|
|
||||||
- name: Run linting
|
- name: Run linting
|
||||||
run: ruff check i18n_key_sync/ tests/ || true
|
|
||||||
|
|
||||||
- name: Summary
|
|
||||||
run: |
|
run: |
|
||||||
echo "CI workflow completed"
|
pip3 install ruff
|
||||||
echo "All steps executed"
|
ruff check i18n_key_sync/ tests/ || true
|
||||||
|
|||||||
Reference in New Issue
Block a user