This commit is contained in:
@@ -2,20 +2,20 @@ name: CI
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [ main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: python:3.11-slim
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout
|
||||||
- name: Set up Python
|
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
apt-get update
|
||||||
sudo apt-get install -y python3 python3-pip python3-venv
|
apt-get install -y git
|
||||||
python3 --version
|
git clone --depth 1 https://github.com/7000pctAUTO/snippet-manager.git .
|
||||||
pip3 --version
|
- name: Install
|
||||||
- name: Install package
|
run: pip install -e . pytest pytest-asyncio
|
||||||
run: pip3 install -e . pytest pytest-asyncio
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: pytest tests/ -v
|
run: pytest tests/ -v
|
||||||
|
|||||||
Reference in New Issue
Block a user