Skip to content

Commit

Permalink
Merge pull request #5 from CCA-Software-Group/workflows
Browse files Browse the repository at this point in the history
simplify workflows
  • Loading branch information
jeffjennings authored Sep 3, 2024
2 parents 417ca7b + 4400d29 commit 29a788f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 15 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,14 @@ jobs:
- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Install docs dependencies
- name: Install package and dependencies
run: |
sudo apt-get install pandoc
pip install setuptools --upgrade
pip install .[test,docs]
- name: Make docs
run: |
pip install .
cd docs
make html
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/format_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,10 @@ jobs:
- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Install dependencies
- name: Install package and dependencies
run: |
pip install setuptools --upgrade
pip install .[coding_standards]
- name: Install package
run: pip install .

- name: Run `ruff` linter / formatter
run: ruff check .
7 changes: 2 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,10 @@ jobs:
- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Install test dependencies
- name: Install package and dependencies
run: |
pip install setuptools --upgrade
pip install .[test]
- name: Install package
run: pip install .
pip install .[test]
- name: Run unit tests
run: |
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/type_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,11 @@ jobs:
- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Install dependencies
- name: Install package and dependencies
run: |
pip install setuptools --upgrade
pip install .[type_checking]
- name: Install package
run: pip install .

- name: Run `mypy` type checker
# proceed even if mypy checking fails:
continue-on-error: true
Expand Down

0 comments on commit 29a788f

Please sign in to comment.