This commit is contained in:
@@ -3,37 +3,23 @@ name: CI
|
|||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ci:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Clone repo
|
||||||
run: |
|
run: |
|
||||||
git clone https://${{ gitea.server }}/${{ gitea.repository }} $HOME/repo
|
git clone https://${{ gitea.server }}/${{ gitea.repository }} repo
|
||||||
cd $HOME/repo
|
cd repo
|
||||||
git checkout ${{ gitea.sha }}
|
git checkout ${{ gitea.sha }}
|
||||||
|
|
||||||
- name: Install Python
|
- name: Check files
|
||||||
run: |
|
run: |
|
||||||
python3 -V
|
cd repo
|
||||||
pip3 install --upgrade pip
|
ls -la
|
||||||
|
|
||||||
- name: Install pytest
|
- name: Verify Python
|
||||||
run: |
|
run: |
|
||||||
pip3 install pytest
|
python3 --version
|
||||||
pytest --version
|
|
||||||
|
|
||||||
- name: Install project
|
- name: Done
|
||||||
run: |
|
run: echo "CI completed"
|
||||||
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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user