Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update actions to latest versions #197

Merged
merged 2 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./actions/setup
with:
python-version: "3.11"
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
JOB_SUFFIX: ${{ matrix.remote-id }}
GH_TOKEN: ${{ secrets.PUBLIC_GH_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
path: action-checkout
- uses: ./action-checkout/actions/setup
Expand All @@ -93,7 +93,7 @@ jobs:
with:
name: ${{ matrix.script }}
path: nengo-bones
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: ${{ always() && matrix.coverage-name }}
with:
name: coverage-${{ matrix.coverage-name }}
Expand All @@ -105,7 +105,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./actions/coverage-report
auto-update:
needs:
Expand All @@ -116,7 +116,7 @@ jobs:
env:
GH_TOKEN: ${{ secrets.PUBLIC_GH_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./actions/setup
with:
python-version: "3.11"
Expand All @@ -136,7 +136,7 @@ jobs:
- name: Write .pypirc to file
run: |
echo '${{ secrets.PYPIRC_FILE }}' > ~/.pypirc
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./actions/setup
with:
python-version: "3.10"
Expand Down
8 changes: 4 additions & 4 deletions actions/coverage-report/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@ inputs:
runs:
using: composite
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install coverage
shell: bash -el {0}
run: |
pip install coverage
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
id: download
- name: Combine coverage and generate report
shell: bash -el {0}
run: |
coverage combine $(find ${{ steps.download.outputs.download-path }} -type f -name ".coverage")
coverage html
coverage report --show-missing --fail-under=${{ inputs.min-coverage }}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: coverage-report
Expand Down
4 changes: 2 additions & 2 deletions actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ inputs:
runs:
using: composite
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
path: ${{ inputs.path }}
- uses: mamba-org/setup-micromamba@v1
Expand All @@ -21,7 +21,7 @@ runs:
environment-name: ci
cache-downloads: true
generate-run-shell: false
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip
1 change: 0 additions & 1 deletion nengo_bones/scripts/check_notice.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Checks that license text is added to all .py files."""


import click

from nengo_bones.templates import add_notice
Expand Down
Loading