CI with docker container
This commit is contained in:
@@ -1,20 +1,13 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
container: python:3.11-slim
|
||||
steps:
|
||||
- name: Debug
|
||||
run: |
|
||||
set -x
|
||||
whoami
|
||||
pwd
|
||||
ls -la /app
|
||||
- name: Install
|
||||
run: pip3 install -e /app && pip3 install pytest pytest-asyncio
|
||||
run: pip install -e . pytest pytest-asyncio
|
||||
- name: Run tests
|
||||
run: pytest /app/tests/ -v
|
||||
run: pytest tests/ -v
|
||||
Reference in New Issue
Block a user