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