Skip to content

Commit

Permalink
Trigger the workflow on push or pull-request events.
Browse files Browse the repository at this point in the history
  • Loading branch information
udifuchs committed Feb 5, 2024
1 parent c7757d8 commit 566843c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@

name: run tests

on:
push:
branches:
- master
- ci-test
# Triggers the workflow on push or pull-request events.
on: [push, pull_request]

jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
# Run on earliest and latest supported python versions.
python-version: ["3.7", "3.11"]
# Run linters and pytests.
testsuite: ["linters", "pytest"]
steps:
- uses: actions/checkout@v4
Expand All @@ -24,9 +23,10 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install tox
- name: run tests
- name: run linters
# Linters are only run on the earliest supported python version.
if: ${{ matrix.python-version == '3.7' && matrix.testsuite == 'linters' }}
run: tox -e py3-pytest
- name: run linters
- name: run pytest
if: ${{ matrix.testsuite == 'pytest' }}
run: tox -e mypy,pep8,pylint

0 comments on commit 566843c

Please sign in to comment.