Skip to content

Commit

Permalink
cleanup ci/cd actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastroy committed May 8, 2024
1 parent e4f96a3 commit 0f43519
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 27 deletions.
4 changes: 2 additions & 2 deletions .github/actions/python-build/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "mkl-python repo"
description: "install a mkl dependent python repo"
name: "python build package"
description: "build client wheel"

runs:
using: "composite"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,16 @@ runs:
uses: actions/setup-python@v4
with:
python-version: '3.10.4'
- name: install linters
run: pip install flake8
- name: install linters and pytest
run: pip install flake8 mypy pytest
shell: bash
- name: run flake8
run: flake8 qcog_python_client
shell: bash
- name: run mypy
run: mypy qcog_python_client
shell: bash
- name: Test with pytest
run: |
echo pytest tests
shell: bash
16 changes: 0 additions & 16 deletions .github/actions/test/action.yml

This file was deleted.

6 changes: 2 additions & 4 deletions .github/workflows/all_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup python and Lint Code
uses: ./.github/actions/setup_and_lint
- name: Setup python, Lint Code and test
uses: ./.github/actions/setup_lint_and_test
- name: Build and install our repo
uses: ./.github/actions/python-build
- name: Run Pytest
uses: ./.github/actions/test
- name: Configure aws credentials
uses: aws-actions/configure-aws-credentials@v3
with:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/merge_to_develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup python and Lint Code
- name: Setup python, Lint Code and test
uses: ./.github/actions/setup_and_lint
- name: Build and install our repo
uses: ./.github/actions/python-build
- name: Run Pytest
uses: ./.github/actions/test
- name: Bump version
uses: ./.github/actions/bumpversion
env:
Expand Down

0 comments on commit 0f43519

Please sign in to comment.