ci: use python-node runner image for fast dependency installs
Some checks failed
CI / test (push) Failing after 52s
Some checks failed
CI / test (push) Failing after 52s
This commit is contained in:
parent
590e58d3a7
commit
fd01c31c4a
1 changed files with 4 additions and 10 deletions
|
|
@ -8,24 +8,18 @@ on:
|
|||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: python-node
|
||||
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: /tmp/venv/bin/pip install -e ".[dev]"
|
||||
run: pip install -e ".[dev]"
|
||||
|
||||
- name: Lint
|
||||
run: /tmp/venv/bin/ruff check app/ tests/
|
||||
run: ruff check app/ tests/
|
||||
|
||||
- name: Run tests
|
||||
run: /tmp/venv/bin/python -m pytest tests/ -v
|
||||
run: python -m pytest tests/ -v
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue