Skip to content

Commit

Permalink
workflow call not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
MIWdlB committed May 13, 2024
1 parent 2eb3f3f commit 1132069
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 40 deletions.
36 changes: 17 additions & 19 deletions .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
name: Linting

on:
workflow_call:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v2
with:
python-version: '3.9'
cache: 'poetry'
- name: pydocstyle
run: poetry run pydocstyle --convention=google
- name: isort
run: poetry run isort . --check
- name: black
run: poetry run black . --check
- name: flake8
run: poetry run flake8 . --ignore E501,F401,W503 --count
continue-on-error: True
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v2
with:
python-version: '3.9'
cache: 'poetry'
- name: pydocstyle
run: poetry run pydocstyle --convention=google
- name: isort
run: poetry run isort . --check
- name: black
run: poetry run black . --check
- name: flake8
run: poetry run flake8 . --ignore E501,F401,W503 --count
continue-on-error: True
40 changes: 19 additions & 21 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
name: Testing

on:
workflow_call:
jobs:
test:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/setup-python@v2
with:
python-version: '3.9'
cache: 'poetry'
- name: HamiltonianBuilder
run: poetry run pytest tests/test_builder.py
- name: NbedDriver
run: poetry run pytest tests/test_driver.py
- name: Embed
run: poetry run pytest tests/test_embed.py
- name: HamiltonianConverter
run: poetry run pytest tests/test_ham_converter.py
- name: Localizers
run: poetry run pytest tests/test_localizers.py
jobs:
test:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/setup-python@v2
with:
python-version: '3.9'
cache: 'poetry'
- name: HamiltonianBuilder
run: poetry run pytest tests/test_builder.py
- name: NbedDriver
run: poetry run pytest tests/test_driver.py
- name: Embed
run: poetry run pytest tests/test_embed.py
- name: HamiltonianConverter
run: poetry run pytest tests/test_ham_converter.py
- name: Localizers
run: poetry run pytest tests/test_localizers.py

0 comments on commit 1132069

Please sign in to comment.