Skip to content

Commit

Permalink
Fix: Tambah conditional untuk github action job unittest supaya hanya…
Browse files Browse the repository at this point in the history
… deteksi pull request atau branch develop / main saja.
  • Loading branch information
pipinfitriadi committed Aug 31, 2023
1 parent cb93acc commit ebf2364
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
unittest:
name: Unit Test
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' || contains('refs/heads/main refs/heads/develop', github.ref)
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.7
Expand All @@ -24,4 +25,5 @@ jobs:
python-version: '3.7'
- name: Install dependencies
run: pip install .
- run: python -m unittest
- name: Test
run: python -m unittest

0 comments on commit ebf2364

Please sign in to comment.