fix: use GitHub Actions compatible syntax for Gitea
Some checks failed
CI / test (push) Failing after 15s
Some checks failed
CI / test (push) Failing after 15s
This commit is contained in:
@@ -1,29 +1,32 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
pull_request:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: gitea
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- uses: actions/checkout@v4
|
||||||
run: |
|
with:
|
||||||
git clone https://${{ gitea.server }}/${{ gitea.repository }} .
|
fetch-depth: 0
|
||||||
git checkout ${{ gitea.sha }}
|
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Set up Python
|
||||||
run: |
|
uses: actions/setup-python@v5
|
||||||
python3 -m pip install --upgrade pip
|
with:
|
||||||
|
python-version: '3.11'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
python3 -m pip install --upgrade pip
|
||||||
python3 -m pip install pytest ruff
|
python3 -m pip install pytest ruff
|
||||||
python3 -m pip install -e ".[dev]"
|
python3 -m pip install -e ".[dev]"
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: python3 -m pytest tests/ -v --tb=short
|
||||||
python3 -m pytest tests/ -v --tb=short
|
|
||||||
|
|
||||||
- name: Lint
|
- name: Run linting
|
||||||
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