Skip to content

Commit

Permalink
update pytest pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
erdogant committed Oct 30, 2024
1 parent 90e4d48 commit 1097f99
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
# - run: git checkout HEAD^2
# if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@ name: Pytest for benfordslaw
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]
python-version: [3.8, 3.9]
os: ["ubuntu-latest"]
python-version: ["3.12"]
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 pandas
pip install pytest
- name: Test with pytest
run: |
pip install pytest
pytest

0 comments on commit 1097f99

Please sign in to comment.