gitea workflows: action.yaml indent bug
This commit is contained in:
1 parent
20b868c083
commit
73da8ba713
1 file changed
+42
-41
@@ -21,54 +21,55 @@ env:
|
||||
PYTHONPATH: src
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set Up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.12'
|
||||
- name: Set Up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.12'
|
||||
|
||||
- name: Cache pip
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-test-${{ hashFiles('**/pyproject.toml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pip-test-
|
||||
- name: Cache pip
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-test-${{ hashFiles('**/pyproject.toml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pip-test-
|
||||
|
||||
- name: Create virtual environment
|
||||
run: |
|
||||
python -m venv venv
|
||||
- name: Create virtual environment
|
||||
run: |
|
||||
python -m venv venv
|
||||
|
||||
- name: Install dependencies
|
||||
env:
|
||||
PIP_INDEX_URL: https://${{ secrets.GITEA_USER }}:${{ secrets.GITEA_TOKEN }}@gitea.psi.ch/api/packages/mx/pypi/simple/
|
||||
PIP_EXTRA_INDEX_URL: https://pypi.org/simple
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
- name: Install dependencies
|
||||
env:
|
||||
PIP_INDEX_URL: https://${{ secrets.GITEA_USER }}:${{ secrets.GITEA_TOKEN }}@gitea.psi.ch/api/packages/mx/pypi/simple/
|
||||
PIP_EXTRA_INDEX_URL: https://pypi.org/simple
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
|
||||
python -m pip install --upgrade pip
|
||||
|
||||
pip install pytest pytest-cov pytest-mock pytest-qt
|
||||
|
||||
pip install -e .
|
||||
|
||||
python -m pip install --upgrade pip
|
||||
- name: Run tests with pytest
|
||||
env:
|
||||
PYTEST_DISABLE_PLUGIN_AUTOLOAD: "1"
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
|
||||
pytest \
|
||||
-p pytest_cov \
|
||||
--cov=aare \
|
||||
--cov-report=xml \
|
||||
tests/unit
|
||||
|
||||
pip install pytest pytest-cov pytest-mock pytest-qt
|
||||
|
||||
pip install -e .
|
||||
|
||||
- name: Run tests with pytest
|
||||
env:
|
||||
PYTEST_DISABLE_PLUGIN_AUTOLOAD: "1"
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
|
||||
pytest \
|
||||
-p pytest_cov \
|
||||
--cov=aare \
|
||||
--cov-report=xml \
|
||||
tests/unit
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
|
||||
Reference in new issue
Block a user