fix: simplify Gitea Actions workflow for better compatibility
Some checks failed
CI / test (push) Failing after 5s
Some checks failed
CI / test (push) Failing after 5s
This commit is contained in:
@@ -2,17 +2,15 @@ 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
|
- name: Checkout
|
||||||
run: |
|
run: |
|
||||||
git clone https://${{ gitea.server }}/${{ gitea.repository }} .
|
git clone https://${{ gitea.server }}/${{ gitea.repository }} .
|
||||||
git checkout ${{ gitea.sha }}
|
git checkout ${{ gitea.sha }}
|
||||||
@@ -21,14 +19,15 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python3 -m pip install --upgrade pip
|
python3 -m pip install --upgrade pip
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install
|
||||||
run: |
|
run: |
|
||||||
|
python3 -m pip install pytest ruff
|
||||||
python3 -m pip install -e ".[dev]"
|
python3 -m pip install -e ".[dev]"
|
||||||
|
|
||||||
- name: Run tests
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
python3 -m pytest tests/ -v --tb=short
|
python3 -m pytest tests/ -v --tb=short
|
||||||
|
|
||||||
- name: Run linting
|
- name: Lint
|
||||||
run: |
|
run: |
|
||||||
python3 -m ruff check i18n_key_sync/ tests/
|
python3 -m ruff check i18n_key_sync/ tests/
|
||||||
|
|||||||
Reference in New Issue
Block a user