*refactor: changed test_session.py to fix security vulnerability #90
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python Tests | |
on: | |
push: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
permissions: | |
contents: read | |
issues: write | |
checks: write | |
pull-requests: write | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
pip install poetry | |
poetry install | |
- name: Run pytest with coverage and generate report | |
run: poetry run pytest --cov=tests --cov-report=xml tests/ | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: coverage | |
path: coverage.xml |