ci: use node:22 base with Python installed for actions compatibility
Some checks failed
CI / test (push) Failing after 15s
Some checks failed
CI / test (push) Failing after 15s
This commit is contained in:
parent
6e87902217
commit
6fc4c1ae2b
1 changed files with 10 additions and 4 deletions
|
|
@ -8,18 +8,24 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: python
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
working-directory: services/api
|
working-directory: services/api
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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
|
- name: Install dependencies
|
||||||
run: pip install -e ".[dev]"
|
run: /tmp/venv/bin/pip install -e ".[dev]"
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: ruff check app/ tests/
|
run: /tmp/venv/bin/ruff check app/ tests/
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: python -m pytest tests/ -v
|
run: /tmp/venv/bin/python -m pytest tests/ -v
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue