Skip to content

Commit

Permalink
Update Github Actions (#641)
Browse files Browse the repository at this point in the history
  • Loading branch information
HGSilveri authored Feb 12, 2024
1 parent 21a47f3 commit 7b7918b
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/pulser-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -28,4 +28,4 @@ runs:
run: |
grep -e ${{ inputs.extra-packages }} dev_requirements.txt \
| sed 's/ //g' \
| xargs pip install
| xargs pip install
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)"
Expand Down

0 comments on commit 7b7918b

Please sign in to comment.