mirror of
https://github.com/acehoss/rnsh.git
synced 2025-12-22 09:17:06 +00:00
Update GitHub Actions workflow for Python testing
- Upgraded `actions/checkout` to v4 and configured it to fetch only the current ref, disable tag fetching, and clean the workspace. - Modified pytest command to run tests quietly for improved output clarity.
This commit is contained in:
7
.github/workflows/python-package.yml
vendored
7
.github/workflows/python-package.yml
vendored
@@ -22,9 +22,12 @@ jobs:
|
|||||||
runs-on: [self-hosted, linux]
|
runs-on: [self-hosted, linux]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
fetch-tags: false
|
||||||
|
clean: true
|
||||||
|
ref: ${{ github.ref }}
|
||||||
|
|
||||||
- name: Set up Python 3.9
|
- name: Set up Python 3.9
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
@@ -53,7 +56,7 @@ jobs:
|
|||||||
# run: poetry run black . --check
|
# run: poetry run black . --check
|
||||||
|
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
run: poetry run pytest -m "not skip_ci" tests
|
run: poetry run pytest -q
|
||||||
|
|
||||||
# - name: Vulnerability check
|
# - name: Vulnerability check
|
||||||
# run: poetry run safety check
|
# run: poetry run safety check
|
||||||
|
|||||||
Reference in New Issue
Block a user