Skip to content

Commit

Permalink
Merge pull request #30 from PiwikPRO/devops-5661-missing-timeouts-for…
Browse files Browse the repository at this point in the history
…-gha

DEVOPS-5661 Missing timeouts for gha workflow
  • Loading branch information
glothriel authored Aug 1, 2022
2 parents 7fdb209 + 675dbc0 commit 0755ecd
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 55 deletions.
49 changes: 22 additions & 27 deletions .github/workflows/package.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,24 @@
---
name: Build package using various python versions

"on":
pull_request:

on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
name: Tests (Python ${{ matrix.python-version }})
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64

- name: Install poetry
uses: abatilo/actions-poetry@c1aba0c402ae0d96fbb6d94050592a56b202009f

- name: Build and install poetry package
run: poetry build && poetry install

- name: Verify, that import_logs is properly called
run: poetry run piwik_pro_log_analytics --help
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
name: Tests (Python ${{ matrix.python-version }})
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install poetry
uses: abatilo/actions-poetry@c1aba0c402ae0d96fbb6d94050592a56b202009f
- name: Build and install poetry package
run: poetry build && poetry install
- name: Verify, that import_logs is properly called
run: poetry run piwik_pro_log_analytics --help
timeout-minutes: 30
55 changes: 27 additions & 28 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
---
name: Unit tests
"on":
pull_request:

on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
name: Tests (Python ${{ matrix.python-version }})
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install Pytest
run: |
pip install --upgrade pip
pip install pytest
python --version ; pip --version ; pytest --version
shell: bash
- name: Run Tests
run: |
cd tests
./run_tests.sh
shell: bash
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
name: Tests (Python ${{ matrix.python-version }})
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install Pytest
run: |
pip install --upgrade pip
pip install pytest
python --version ; pip --version ; pytest --version
shell: bash
- name: Run Tests
run: |
cd tests
./run_tests.sh
shell: bash
timeout-minutes: 30

0 comments on commit 0755ecd

Please sign in to comment.