Skip to content

Merge pull request #2 from NetSPI/dependabot/pip/oci-2.170.0 #9

Merge pull request #2 from NetSPI/dependabot/pip/oci-2.170.0

Merge pull request #2 from NetSPI/dependabot/pip/oci-2.170.0 #9

Workflow file for this run

name: Unit Tests
on:
push:
branches: ["**"]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
unit-tests:
name: Unit Tests (py${{ matrix.python-version }}) [${{ github.ref_name }}]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Checkout
# v6.0.2
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
fetch-depth: 1
- name: Setup Python
# v6.2.0
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install .[dev]
- name: Run unit tests
run: python -m pytest -q -ra tests/unit