Skip to content

Commit

Permalink
run github actions only on push and PR on master
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaimoiseanu committed Feb 19, 2024
1 parent 101b014 commit a6eacac
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions .github/workflows/build_py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ on:
branches:
# push on master branch
- master
# push on a feature branch
- feature/*
# push on a bugfix branch
- bugfix/*
pull_request:
branches: [ master ]

Expand All @@ -19,16 +15,16 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.6
uses: actions/setup-python@v2
with:
python-version: 3.6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/base.txt
pip install -r requirements/development.txt
- name: Run tests
run: |
python -m unittest discover
- uses: actions/checkout@v2
- name: Set up Python 3.6
uses: actions/setup-python@v2
with:
python-version: 3.6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/base.txt
pip install -r requirements/development.txt
- name: Run tests
run: |
python -m unittest discover

0 comments on commit a6eacac

Please sign in to comment.