Skip to content

Commit

Permalink
Merge pull request #133 from redhat-partner-solutions/ci-mock-fix
Browse files Browse the repository at this point in the history
Clean up mock test workflow
  • Loading branch information
akiselev1 authored Mar 3, 2023
2 parents 53deda3 + 35d672b commit 459868b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 29 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/github-actions.yaml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/mock.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Mock test
on: [pull_request, workflow_dispatch]
jobs:
mock-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f sriov/requirements.txt ]; then pip install -r sriov/requirements.txt; fi
pip install mock
- name: Run mock tests
run: |
python -m unittest -v sriov/common/test_utils_mock.py

0 comments on commit 459868b

Please sign in to comment.