Skip to content

Commit

Permalink
Move unit tests to separate actions job
Browse files Browse the repository at this point in the history
  • Loading branch information
stsnel committed Oct 3, 2023
1 parent 1647877 commit 2418d9b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/python2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,3 @@ jobs:
- name: Lint with flake8
run: |
flake8 --statistics
- name: Run unit tests
run: |
cd unit-tests
python2 -m unittest unit_tests
31 changes: 31 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Run unit tests"

on:
push:
paths-ignore:
- 'tests/**'
pull_request:
paths-ignore:
- 'tests/**'

jobs:
flake8:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [2.7]
steps:
- uses: actions/checkout@v3

- name: Set up Python
# setup-python stopped supporting Python 2.7, use https://github.com/MatteoH2O1999/setup-python
uses: MatteoH2O1999/[email protected]
with:
python-version: ${{ matrix.python-version }}
allow-build: info
cache-build: true

- name: Run unit tests
run: |
cd unit-tests
python2 -m unittest unit_tests

0 comments on commit 2418d9b

Please sign in to comment.