Fix CI workflow: remove external checkout action, use auto-checkout, use python3 -m pytest
This commit is contained in:
@@ -2,22 +2,21 @@ name: CI
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [ main ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [ main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Set up Python
|
- 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 python3 python3-pip python3-venv
|
||||||
python3 --version
|
python3 --version
|
||||||
pip3 --version
|
pip3 --version
|
||||||
- name: Install package
|
- name: Install package
|
||||||
run: pip3 install -e . pytest pytest-asyncio
|
run: pip3 install -e . pytest pytest-asyncio
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: pytest tests/ -v
|
run: python3 -m pytest tests/ -v
|
||||||
Reference in New Issue
Block a user