Skip to content

Commit

Permalink
Update GitHub actions (#734)
Browse files Browse the repository at this point in the history
* update github actions

* Add cache
  • Loading branch information
lfarv committed Feb 9, 2024
1 parent f1b1602 commit acda62e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-python-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
fetch-depth: 0

- name: Install Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.9'

Expand All @@ -48,7 +48,7 @@ jobs:
fetch-depth: 0

- name: Install Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.9'

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ jobs:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.9
cache: pip

- name: Build and install at
run: python -m pip install ".[plot, doc]"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/matlab-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ jobs:
- uses: actions/checkout@v4

- name: Set up python 3.9
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.9'
cache: pip

- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v1
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ jobs:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip

- name: Build and install at with tests
run: python -m pip install -e ".[dev]"
Expand All @@ -39,8 +40,8 @@ jobs:
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
# exit-zero treats all errors as warnings. Options compatible with the 'black' code formatter
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88 --extend-ignore=E203,E704 --extend-select=W504 --per-file-ignores='*/__init__.py:F401,F403' --statistics
- name: Test with pytest and coverage
working-directory: pyat
Expand Down

0 comments on commit acda62e

Please sign in to comment.