Simplify CI workflow to use python container directly
This commit is contained in:
@@ -9,14 +9,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container: python:3.11-slim
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Python
|
|
||||||
run: |
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y python3 python3-pip python3-venv
|
|
||||||
python3 --version
|
|
||||||
pip3 --version
|
|
||||||
- name: Install package
|
- name: Install package
|
||||||
run: pip3 install -e . pytest pytest-asyncio
|
run: pip install -e . pytest pytest-asyncio && python -m pytest tests/ -v
|
||||||
- name: Run tests
|
|
||||||
run: python3 -m pytest tests/ -v
|
|
||||||
Reference in New Issue
Block a user