mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-08 05:39:13 +00:00
Improve name, stages in Github Workflows for Publish and Test
This commit is contained in:
11
.github/workflows/publish.yml
vendored
11
.github/workflows/publish.yml
vendored
@@ -20,21 +20,24 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.10'
|
||||||
|
|
||||||
- name: Install Python Dependencies
|
- name: Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install build twine
|
pip install build twine
|
||||||
|
|
||||||
|
- name: Install Application
|
||||||
|
run: |
|
||||||
pip install --upgrade .
|
pip install --upgrade .
|
||||||
|
|
||||||
- name: Build Application
|
- name: Build, Check App to Publish
|
||||||
run: |
|
run: |
|
||||||
rm -rf dist
|
rm -rf dist
|
||||||
python -m build
|
python -m build
|
||||||
|
twine check dist/*
|
||||||
|
|
||||||
- name: Publish App to Test PyPI
|
- name: Publish App to PyPI
|
||||||
env:
|
env:
|
||||||
TWINE_USERNAME: __token__
|
TWINE_USERNAME: __token__
|
||||||
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_KEY }}
|
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_KEY }}
|
||||||
run: |
|
run: |
|
||||||
twine check dist/*
|
|
||||||
twine upload -r testpypi dist/*
|
twine upload -r testpypi dist/*
|
||||||
7
.github/workflows/test.yml
vendored
7
.github/workflows/test.yml
vendored
@@ -32,12 +32,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.10'
|
||||||
|
|
||||||
- name: Install Python Dependencies
|
- name: Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install pytest
|
pip install pytest
|
||||||
|
|
||||||
|
- name: Install Application
|
||||||
|
run: |
|
||||||
pip install --upgrade .
|
pip install --upgrade .
|
||||||
|
|
||||||
- name: Test with pytest
|
- name: Test Application
|
||||||
run: |
|
run: |
|
||||||
pytest
|
pytest
|
||||||
Reference in New Issue
Block a user