Skip to content

Cache removed and filelist unit test #20

Cache removed and filelist unit test

Cache removed and filelist unit test #20

Workflow file for this run

name: "Run Tests"
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
unit-tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Pytest with coverage
run: pytest test/test_self_scan.py --cov=your_package_name --cov-report xml:coverage.xml -v
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}