Skip to content

Commit

Permalink
fix(gh-actions): Update Ubuntu images
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermef committed Dec 11, 2022
1 parent 8b5d118 commit 649bc37
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 34 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ name: "CodeQL"

on:
push:
branches: [ master ]
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
branches: [master]
schedule:
- cron: '26 1 * * 6'
- cron: "26 1 * * 6"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
permissions:
actions: read
contents: read
Expand All @@ -21,25 +21,25 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'python' ]
language: ["python"]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: APT Update
run: sudo apt-get update -y
- name: APT Install
run: sudo apt-get install -y libjpeg-dev python3-opencv
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql/codeql-config.yml
setup-python-dependencies: false
- name: Checkout repository
uses: actions/checkout@v3
- name: APT Update
run: sudo apt-get update -y
- name: APT Install
run: sudo apt-get install -y libjpeg-dev python3-opencv
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql/codeql-config.yml
setup-python-dependencies: false

- name: Install remotecv
run: make setup
- name: Install remotecv
run: make setup

- name: Set CodeQL python
run: echo "CODEQL_PYTHON=$(which python)" >> $GITHUB_ENV
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
- name: Set CodeQL python
run: echo "CODEQL_PYTHON=$(which python)" >> $GITHUB_ENV
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ permissions:

jobs:
release:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Python
Expand All @@ -38,7 +38,7 @@ jobs:

docker:
needs: release
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
matrix:
python_version:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: 'Close stale issues and PRs'
name: "Close stale issues and PRs"
on:
schedule:
- cron: '* */6 * * *'
- cron: "* */6 * * *"

jobs:
stale:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove the stale label or add a comment, or this issue will be closed in 5 days. You can always re-open if you still feel this is still an issue. Tag @heynemann for more information.'
stale-pr-message: 'This PR is stale because it has been open 45 days with no activity. Remove the stale label or add a comment, or this PR will be closed in 10 days. You can always re-open if you feel this is something we should still keep working on. Tag @heynemann for more information.'
close-issue-message: 'This issue was closed because it has been stale for 5 days with no activity.'
close-pr-message: 'This PR was closed because it has been stale for 10 days with no activity.'
stale-issue-message: "This issue is stale because it has been open 30 days with no activity. Remove the stale label or add a comment, or this issue will be closed in 5 days. You can always re-open if you still feel this is still an issue. Tag @heynemann for more information."
stale-pr-message: "This PR is stale because it has been open 45 days with no activity. Remove the stale label or add a comment, or this PR will be closed in 10 days. You can always re-open if you feel this is something we should still keep working on. Tag @heynemann for more information."
close-issue-message: "This issue was closed because it has been stale for 5 days with no activity."
close-pr-message: "This PR was closed because it has been stale for 10 days with no activity."
days-before-issue-stale: 30
days-before-pr-stale: 45
days-before-issue-close: 5
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unittest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand All @@ -29,7 +29,7 @@ jobs:
- uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}
key: ubuntu-22.04-${{ env.pythonLocation }}-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}
- name: Install remotecv
run: pip install --upgrade --upgrade-strategy eager -e .[dev]
- run: docker-compose pull
Expand Down

0 comments on commit 649bc37

Please sign in to comment.