Minimal CI workflow - just checkout and run tests
Some checks failed
CI / test (push) Has been cancelled
Some checks failed
CI / test (push) Has been cancelled
This commit is contained in:
@@ -1,29 +1,18 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on:
|
on: [push, pull_request]
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
pull_request:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout
|
||||||
run: |
|
run: |
|
||||||
git clone https://gitea.com/${{ github.repository }} ${{ github.workspace }}
|
git clone https://gitea.com/${{ github.repository }} ${{ github.workspace }}
|
||||||
cd ${{ github.workspace }}
|
cd ${{ github.workspace }}
|
||||||
git checkout ${{ github.sha }}
|
git checkout ${{ github.sha }}
|
||||||
- name: Set up Python
|
|
||||||
run: |
|
|
||||||
which python3 || (apt-get update && apt-get install -y python3 python3-pip)
|
|
||||||
python3 --version
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
python3 -m pip install --upgrade pip
|
|
||||||
python3 -m pip install -e .
|
|
||||||
python3 -m pip install pytest
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
python3 -m pytest tests/ -v
|
cd ${{ github.workspace }}
|
||||||
|
pip3 install -e . pytest 2>/dev/null || pip install -e . pytest
|
||||||
|
python3 -m pytest tests/ -v 2>/dev/null || python -m pytest tests/ -v
|
||||||
|
|||||||
Reference in New Issue
Block a user