Skip to content

Commit 415f432

Browse files
chore: bump pytest-cov from 3.0.0 to 4.1.0 (#261) and use local-runner for ci
* chore: bump pytest-cov from 3.0.0 to 4.1.0 Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov) from 3.0.0 to 4.1.0. - [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst) - [Commits](pytest-dev/pytest-cov@v3.0.0...v4.1.0) --- updated-dependencies: - dependency-name: pytest-cov dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * ci: use local runner * ci: update actions/cache to v3 * ci: update actions/upload-artifact to v4 * ci: add -y to install sphinx * ci: add -y for apt installations --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jelle <43064291+jelledouwe@users.noreply.github.com>
1 parent c0f5c54 commit 415f432

File tree

3 files changed

+136
-152
lines changed

3 files changed

+136
-152
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
pull_request:
1010
branches: [ master, develop ]
1111
schedule:
12-
- cron: '0 8 * * *'
12+
- cron: '0 0 1 1 *'
1313

1414
jobs:
1515
test:
@@ -21,7 +21,7 @@ jobs:
2121
os: [ "ubuntu-20.04" ]
2222
# python-version: [ "3.6.2", "3.7", "3.8", "3.9" ]
2323
python-version: [ "3.8" ]
24-
runs-on: ${{ matrix.os }}
24+
runs-on: self-hosted
2525
timeout-minutes: 40
2626
steps:
2727
#----------------------------------------------
@@ -48,7 +48,7 @@ jobs:
4848
#----------------------------------------------
4949
- name: Load cached venv
5050
id: cached-poetry-dependencies
51-
uses: actions/cache@v2
51+
uses: actions/cache@v3
5252
with:
5353
path: .venv
5454
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
@@ -78,19 +78,19 @@ jobs:
7878
- name: install ROS
7979
run: |
8080
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
81-
sudo apt install curl # if you haven't already installed curl
81+
sudo apt install -y curl # if you haven't already installed curl
8282
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
8383
sudo apt update
84-
sudo apt install ros-noetic-ros-base
84+
sudo apt install -y ros-noetic-ros-base
8585
echo "source /opt/ros/noetic/setup.bash" >> .venv/bin/activate
86-
sudo apt-get install ros-noetic-cv-bridge
87-
sudo apt-get install freeglut3-dev
86+
sudo apt-get install -y ros-noetic-cv-bridge
87+
sudo apt-get install -y freeglut3-dev
8888
#----------------------------------------------
8989
# Build docs
9090
#----------------------------------------------
9191
- name: Build the doc
9292
run: |
93-
sudo apt-get install python3-sphinx
93+
sudo apt-get install -y python3-sphinx
9494
source .venv/bin/activate
9595
make doc
9696
#----------------------------------------------
@@ -103,15 +103,15 @@ jobs:
103103
#----------------------------------------------
104104
# Save code coverage
105105
#----------------------------------------------
106-
- uses: actions/upload-artifact@v3
106+
- uses: actions/upload-artifact@v4
107107
with:
108108
name: 'coverage'
109109
path: coverage.xml
110110
release:
111111
needs: test
112112
# https://github.community/t/how-do-i-specify-job-dependency-running-in-another-workflow/16482
113113
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, 'chore(release):')
114-
runs-on: ubuntu-latest
114+
runs-on: self-hosted
115115
steps:
116116
#----------------------------------------------
117117
# check-out repo and set-up python
@@ -142,7 +142,7 @@ jobs:
142142
# Download coverage and publish to CodeClimate
143143
#----------------------------------------------
144144
- name: Download artifacts
145-
uses: actions/download-artifact@v3
145+
uses: actions/upload-artifact@v4
146146
with:
147147
name: 'coverage'
148148
path: .

0 commit comments

Comments
 (0)