CI workflow with error handling
Some checks failed
CI / test (push) Failing after 1s

This commit is contained in:
2026-01-31 22:04:10 +00:00
parent 0fd7dfc251
commit 86b3d50caf

View File

@@ -1,19 +1,26 @@
name: CI name: CI
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout
run: |
pwd
ls -la
- name: Setup Python - name: Setup Python
run: | run: |
python3 -m pip install --upgrade pip python3 -m pip install --upgrade pip
python3 --version python3 -c "import sys; print(f'Python {sys.version}')"
- name: Install dependencies - name: Install dependencies
run: | run: |
pip3 install -r requirements.txt pip3 install -r requirements.txt 2>&1 || pip install -r requirements.txt 2>&1
pip3 install pytest pip3 install pytest 2>&1 || pip install pytest 2>&1
- name: Run tests - name: Run tests
run: pytest3 tests/ -v run: |
pytest3 tests/ -v 2>&1 || pytest tests/ -v 2>&1