Skip to content
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
20 changes: 20 additions & 0 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Lint GitHub Actions workflows

on:
push:
paths:
- '.github/workflows/**'
pull_request:
paths:
- '.github/workflows/**'

jobs:
actionlint:
name: Actionlint
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Run actionlint
uses: reviewdog/action-actionlint@v1
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- name: Get PR labels
id: get_labels
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const prs = context.payload.workflow_run.pull_requests;
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

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

Expand All @@ -89,14 +89,14 @@ jobs:
- name: Install package
run: |
python -m pip install --upgrade pip setuptools wheel
pip install .[all]
pip install .\[all\]
- name: Get version from package
id: get_version
run: |
VERSION=$(python -c "import skrobot; print(skrobot.__version__)")
echo "Detected version: $VERSION"
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
- name: Tag and push release
run: |
Expand All @@ -114,7 +114,7 @@ jobs:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install publishing dependencies
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
name: Check Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install Formatting
Expand Down Expand Up @@ -46,15 +46,15 @@ jobs:
name: Build Sphinx Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --no-cache-dir .[all]
pip install --no-cache-dir .\[all\]
- name: Build Sphinx Documentation
working-directory: ./docs/source
run: |
Expand All @@ -65,7 +65,7 @@ jobs:
name: Check Requirements Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Check Formatting
run: |
sort -C requirements.txt
Expand Down Expand Up @@ -156,9 +156,9 @@ jobs:
remove-setuptools: true # <- this one uses the latest setuptools
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Wait for apt-get lock
Expand All @@ -180,7 +180,7 @@ jobs:
- name: Install scikit-robot
run: |
pip cache purge
pip install --no-cache-dir .[all]
pip install --no-cache-dir .\[all\]

- name: Install NumPy and SciPy
run: |
Expand Down Expand Up @@ -211,7 +211,7 @@ jobs:
break
else
echo "Tests failed on attempt $i"
if [ $i -eq 3 ]; then
if [ "$i" -eq 3 ]; then
echo "All retry attempts failed"
exit 1
fi
Expand Down