Fix CI workflow - use absolute paths
This commit is contained in:
@@ -10,23 +10,26 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- name: Test
|
||||||
python3 -m pip install --upgrade pip
|
run: |
|
||||||
|
pip install --upgrade pip
|
||||||
pip install pytest
|
pip install pytest
|
||||||
pip install -r requirements.txt
|
pip install -r /app/requirements.txt
|
||||||
pytest tests/ -v
|
pytest /app/tests/ -v
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- name: Lint
|
||||||
|
run: |
|
||||||
pip install ruff
|
pip install ruff
|
||||||
ruff check .
|
ruff check /app/
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: test
|
needs: test
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- name: Build
|
||||||
pip install -r requirements.txt
|
run: |
|
||||||
|
pip install -r /app/requirements.txt
|
||||||
python -c "from man_card import cli, man_parser, card_generator, templates, config; print('All modules import successfully')"
|
python -c "from man_card import cli, man_parser, card_generator, templates, config; print('All modules import successfully')"
|
||||||
|
|||||||
Reference in New Issue
Block a user