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:
Aaron Heise
2025-10-17 14:18:22 -04:00
parent 5841e834f9
commit b114b190bd

View File

@@ -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