Skip to content

Commit

Permalink
ci: run tests in separate workflow on push / PR (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
TimPietrusky authored May 28, 2024
1 parent abe3128 commit 15bd612
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ jobs:
- name: Install dependencies
run: pip install -r requirements.txt

- name: Run tests
run: python -m unittest discover

- name: Clear space to remove unused folders
run: |
rm -rf /usr/share/dotnet
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ jobs:
- name: Install dependencies
run: pip install -r requirements.txt

- name: Run tests
run: python -m unittest discover

- name: Clear space to remove unused folders
run: |
rm -rf /usr/share/dotnet
Expand Down Expand Up @@ -77,6 +74,3 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: ${{ secrets.DOCKERHUB_REPO }}/${{ secrets.DOCKERHUB_IMG }}



27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Tests

on:
push:
branches: [main, dev]
pull_request:
types: [opened, synchronize]
branches: [main, dev]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Install dependencies
run: pip install -r requirements.txt

- name: Run tests
run: python -m unittest discover

0 comments on commit 15bd612

Please sign in to comment.