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

ci(workflows): upgrade actions #2179

Merged
merged 2 commits into from
May 27, 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
10 changes: 2 additions & 8 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
name: "CodeQL"
name: Code scanning with CodeQL

on:
push:
Expand All @@ -18,7 +13,6 @@ jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
Expand All @@ -30,7 +24,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4.1.6

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/format_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ jobs:
runs-on: ubuntu-latest
name: Black
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.6
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v5.1.0
- name: Black
uses: psf/black@22.3.0 # already includes args "--check --diff"
uses: psf/black@24.4.2 # already includes args "--check --diff"
flake8:
runs-on: ubuntu-latest
name: Flake8
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.6
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v5.1.0
with:
python-version: '3.9'
- name: Install dependencies
Expand All @@ -42,9 +42,9 @@ jobs:
runs-on: ubuntu-latest
name: isort
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.6
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v5.1.0
with:
python-version: '3.9'
- name: Install dependencies
Expand Down
26 changes: 16 additions & 10 deletions .github/workflows/test_suite.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
# This workflow installs Python dependencies, runs tests and lints
# using a variety of Python versions.
# For more information see:
# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Run Test Suite

Expand All @@ -10,26 +12,29 @@ on:
pull_request:

jobs:
# Uses Python Framework build because on macos matplotlib requires it
# Uses Python Framework build because on macOS, Matplotlib requires it
macos:
runs-on: macos-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- uses: s-weigand/setup-conda@v1
- uses: actions/checkout@v4.1.6
- uses: s-weigand/setup-conda@v1.2.2
with:
activate-conda: true

- name: Install pythonw
run: conda install python.app

- name: Python Version Info
run: |
pythonw --version
which python
pythonw -m site --user-site
echo $PYTHONPATH
echo $PYTHONHOME

- name: Install dependencies
run: |
brew install imagemagick
Expand All @@ -56,15 +61,15 @@ jobs:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v5.1.0
with:
python-version: ${{ matrix.python-version }}

- name: Get ImageMagick installer from cache
id: imagemagick-installer-cache
uses: actions/cache@v3
uses: actions/cache@v4.0.2
with:
path: |
ImageMagick.exe
Expand Down Expand Up @@ -121,9 +126,10 @@ jobs:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.6

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

Expand Down
Loading