Simplify CI workflow - use available python3 and avoid apt-get if not needed
Some checks failed
CI / test (push) Has been cancelled
Some checks failed
CI / test (push) Has been cancelled
This commit is contained in:
@@ -12,18 +12,18 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
run: |
|
||||
mkdir -p ${{ github.repository }}
|
||||
git clone https://gitea.com/${{ github.repository }} .
|
||||
git clone https://gitea.com/${{ github.repository }} ${{ github.workspace }}
|
||||
cd ${{ github.workspace }}
|
||||
git checkout ${{ github.sha }}
|
||||
- name: Set up Python
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y python3 python3-pip
|
||||
python3 -m pip install --upgrade pip
|
||||
which python3 || (apt-get update && apt-get install -y python3 python3-pip)
|
||||
python3 --version
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip3 install -e .
|
||||
pip3 install pytest
|
||||
python3 -m pip install --upgrade pip
|
||||
python3 -m pip install -e .
|
||||
python3 -m pip install pytest
|
||||
- name: Run tests
|
||||
run: |
|
||||
python3 -m pytest tests/ -v
|
||||
|
||||
Reference in New Issue
Block a user