mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 22:43:34 -07:00
bug: test fix
This commit is contained in:
parent
6bc7c4ceb0
commit
213f80de64
1 changed files with 27 additions and 5 deletions
32
.github/workflows/pytest.yml
vendored
32
.github/workflows/pytest.yml
vendored
|
@ -4,6 +4,7 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- dev
|
- dev
|
||||||
|
- ci/cd
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
@ -18,10 +19,31 @@ jobs:
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
python-version: 3.8
|
python-version: 3.8
|
||||||
- name: Install dependencies
|
- name: Install Poetry
|
||||||
|
uses: dschep/install-poetry-action@v1.2
|
||||||
|
- name: Install Poetry
|
||||||
|
uses: dschep/install-poetry-action@v1.2
|
||||||
|
|
||||||
|
- name: Cache Poetry virtualenv
|
||||||
|
uses: actions/cache@v1
|
||||||
|
id: cache
|
||||||
|
with:
|
||||||
|
path: ~/.virtualenvs
|
||||||
|
key: poetry-${{ hashFiles('**/poetry.lock') }}
|
||||||
|
restore-keys: |
|
||||||
|
poetry-${{ hashFiles('**/poetry.lock') }}
|
||||||
|
|
||||||
|
- name: Set Poetry config
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
poetry config settings.virtualenvs.in-project false
|
||||||
pip install -r requirements.txt
|
poetry config settings.virtualenvs.path ~/.virtualenvs
|
||||||
pip install pytest
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: poetry install
|
||||||
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
|
|
||||||
|
- name: Code Quality
|
||||||
|
run: poetry run black . --check
|
||||||
|
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
run: pytest -vv
|
run: poetry run pytest --cov . -n 2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue