22 lines
467 B
YAML
22 lines
467 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
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
|
|
run: pip3 install -e . pytest pytest-asyncio
|
|
- name: Run tests
|
|
run: python3 -m pytest tests/ -v |