Skip to content

Commit

Permalink
specify shell for running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pluflou committed Feb 24, 2025
1 parent 134b152 commit eaab4c4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,20 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
shell: bash
run: |
eval `ssh-agent -s`
ssh-add - <<< '${{ secrets.MEME_KEY }}'
python -m pip install --upgrade pip
pip install flake8
pip install ".[meme-ssh]"
- name: Lint with flake8
shell: bash
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 .
- name: Test with unittest
shell: bash
run: |
echo -e '## Test results\n\n```' >> "$GITHUB_STEP_SUMMARY"
python -m unittest discover -s tests -v 2>&1 | tee -a "$GITHUB_STEP_SUMMARY"
Expand All @@ -61,15 +64,18 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip
pip install flake8
pip install .
- name: Lint with flake8
shell: bash
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 .
- name: Test with unittest
shell: bash
run: |
echo -e '## Test results\n\n```' >> "$GITHUB_STEP_SUMMARY"
python -m unittest discover -s tests -v 2>&1 | tee -a "$GITHUB_STEP_SUMMARY"
Expand Down

0 comments on commit eaab4c4

Please sign in to comment.