Skip to content

Commit

Permalink
update the pytest.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
erdogant committed Jul 12, 2023
1 parent b33fe5a commit c82ec05
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,28 @@ name: Pytest for clustimage
on: [push]

jobs:
example-1:
name: Ex1 (${{ matrix.python-version }}, ${{ matrix.os }})
test:
name: Pytest (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
os: ["ubuntu-latest"]
python-version: ["3.8", "3.10"]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python -m pip install --upgrade pip
pip install -r requirements.txt
#pip install opencv-python
pip install pytest
pip install -e . # Install the 'undouble' package in editable mode
- name: Test with pytest
run: |
pip install pytest
pytest

0 comments on commit c82ec05

Please sign in to comment.