ci: use node:22 base with Python installed for actions compatibility
Some checks failed
CI / test (push) Failing after 15s

This commit is contained in:
jlightner 2026-04-03 06:25:26 +00:00
parent 6e87902217
commit 6fc4c1ae2b

View file

@ -8,18 +8,24 @@ on:
jobs:
test:
runs-on: python
runs-on: ubuntu-latest
defaults:
run:
working-directory: services/api
steps:
- uses: actions/checkout@v4
- name: Install Python
run: |
apt-get update && apt-get install -y python3 python3-pip python3-venv
python3 -m venv /tmp/venv
echo "PATH=/tmp/venv/bin:$PATH" >> $GITHUB_ENV
- name: Install dependencies
run: pip install -e ".[dev]"
run: /tmp/venv/bin/pip install -e ".[dev]"
- name: Lint
run: ruff check app/ tests/
run: /tmp/venv/bin/ruff check app/ tests/
- name: Run tests
run: python -m pytest tests/ -v
run: /tmp/venv/bin/python -m pytest tests/ -v