From 7b7918b3eef72a76fc38bd274d89c735c3f091bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrique=20Silv=C3=A9rio?= <29920212+HGSilveri@users.noreply.github.com> Date: Mon, 12 Feb 2024 14:30:46 +0100 Subject: [PATCH] Update Github Actions (#641) --- .github/workflows/ci.yml | 10 +++++----- .github/workflows/publish.yml | 8 ++++---- .github/workflows/pulser-setup/action.yml | 14 +++++++------- .github/workflows/test.yml | 2 +- .github/workflows/version.yml | 4 ++-- 5 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 109486753..1429c5549 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out Pulser - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Pulser + flake8 install uses: ./.github/workflows/pulser-setup with: @@ -23,7 +23,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out Pulser - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Pulser + black install uses: ./.github/workflows/pulser-setup with: @@ -34,7 +34,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out Pulser - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Pulser + isort install uses: ./.github/workflows/pulser-setup with: @@ -45,7 +45,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out Pulser - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Pulser + mypy install uses: ./.github/workflows/pulser-setup with: @@ -61,7 +61,7 @@ jobs: python-version: ["3.8", "3.11"] steps: - name: Check out Pulser - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Pulser + pytest install uses: ./.github/workflows/pulser-setup with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a44b5ccc0..b9f5ba27a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,11 +13,11 @@ jobs: id-token: write steps: - name: Check out Pulser - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.ref }} - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.9 - name: Install Python dependencies @@ -69,11 +69,11 @@ jobs: python-version: ["3.8", "3.9", "3.10", "3.11"] steps: - name: Check out Pulser - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.ref }} - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install Pulser from PyPI diff --git a/.github/workflows/pulser-setup/action.yml b/.github/workflows/pulser-setup/action.yml index acfc7dfcb..ba4677ba1 100644 --- a/.github/workflows/pulser-setup/action.yml +++ b/.github/workflows/pulser-setup/action.yml @@ -4,19 +4,19 @@ inputs: python-version: description: Python version required: false - default: '3.9' + default: "3.9" extra-packages: description: Extra packages to install (give to grep) required: false - default: '' + default: "" runs: - using: 'composite' - steps: + using: "composite" + steps: - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ inputs.python-version }} - cache: 'pip' + cache: "pip" - name: Install Pulser shell: bash run: | @@ -28,4 +28,4 @@ runs: run: | grep -e ${{ inputs.extra-packages }} dev_requirements.txt \ | sed 's/ //g' \ - | xargs pip install \ No newline at end of file + | xargs pip install diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 270785a45..d750bedd3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,7 +19,7 @@ jobs: python-version: ["3.8", "3.9", "3.10", "3.11"] steps: - name: Check out Pulser - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Pulser + pytest setup uses: ./.github/workflows/pulser-setup with: diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index 02dd74d36..1fa819fbc 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out base branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.base.ref }} - name: Get old version @@ -19,7 +19,7 @@ jobs: echo "Old version: $old_version" echo "old_version=$old_version" >> $GITHUB_ENV - name: Check out head branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get new version run: | new_version="$(head -1 VERSION.txt)"