Skip to content

Commit

Permalink
Bump Actions versions to the latest version
Browse files Browse the repository at this point in the history
Part of a patch written by Andrew Quijano
  • Loading branch information
Andrew Fasano committed Jul 31, 2024
1 parent 01ba25f commit fda98c7
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 16 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/local_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@

name: Local

on:
workflow_dispatch:

jobs:
local_build_container:
runs-on: panda-arc
steps:
- uses: actions/checkout@v2 # Clones to $GITHUB_WORKSPACE. NOTE: this requires git > 2.18 (not on ubuntu 18.04 by default) to get .git directory
- uses: actions/checkout@v4 # Clones to $GITHUB_WORKSPACE. NOTE: this requires git > 2.18 (not on ubuntu 18.04 by default) to get .git directory

- name: Build docker container from project root
run: echo $GITHUB_WORKSPACE; cd $GITHUB_WORKSPACE && DOCKER_BUILDKIT=1 docker build --progress=plain --target developer -t panda_local:${{ github.sha }} .
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/parallel_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Install ssl
run: apt-get -qq install -y libssl-dev
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install Python dev headers
Expand Down Expand Up @@ -159,7 +159,7 @@ jobs:
runs-on: panda-arc

steps:
- uses: actions/checkout@v1 # Clones code into to /home/runner/work/panda
- uses: actions/checkout@v4 # Clones code into to /home/runner/work/panda

- name: Build docker container from project root
run: cd $GITHUB_WORKSPACE && docker build -t panda_local .
Expand Down
26 changes: 14 additions & 12 deletions .github/workflows/publish_docker.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build and Publish Docker Container and Pypanda Docs # Only for main panda-re repo, not forks

on:
workflow_run:
push:
branches:
- dev
Expand All @@ -14,7 +15,6 @@ jobs:
if: github.repository == 'panda-re/panda' && github.ref == 'refs/heads/dev'
runs-on: panda-arc
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
v-version: ${{ steps.version.outputs.v-version }}
steps:
- name: Install git
Expand Down Expand Up @@ -60,9 +60,9 @@ jobs:
panda/debian/pandare_*.deb
- name: Store the PyPanda distribution packages
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
name: pypanda
path: panda/debian/pandare-*.whl
if-no-files-found: error

Expand All @@ -72,6 +72,7 @@ jobs:
with:
username: pandare
password: ${{secrets.pandare_dockerhub}}


#- name: 'Login to GHCR Registry'
# if: ${{ matrix.ubuntu_version == env.PANDA_CONTAINER_UBUNTU_VERSION }}
Expand Down Expand Up @@ -151,9 +152,9 @@ jobs:

steps:
- name: Download all the dists
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: python-package-distributions
name: pypanda
path: dist/

- name: Publish distribution 📦 to PyPI
Expand All @@ -176,13 +177,14 @@ jobs:

- name: Build Bionic container
# Push both dev and regular container
run: DOCKER_BUILDKIT=1 docker build --progress=plain --target=panda -t pandare/panda_stable:${GITHUB_SHA} $GITHUB_WORKSPACE;
docker tag pandare/panda_stable:${GITHUB_SHA} pandare/panda_stable:latest
docker push pandare/panda_stable:${GITHUB_SHA};
docker push pandare/panda_stable;
#DOCKER_BUILDKIT=1 docker build --progress=plain --target=developer -t pandare/pandadev:${GITHUB_SHA} $GITHUB_WORKSPACE;
#docker tag pandare/panadev:${GITHUB_SHA} pandare/pandadev:latest
#docker push pandare/pandadev;
uses: docker/build-push-action@v5
with:
push: true
context: ${{ github.workspace }}
tags: |
pandare/panda_stable:${{ github.sha }}
pandare/panda_stable:latest
target: panda

- name: Checkout docs and reset
run: rm -rf "${GITHUB_WORKSPACE}/auto_pydoc";
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
pull-requests: write

steps:
- uses: actions/stale@v3
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-close: 30
Expand Down

0 comments on commit fda98c7

Please sign in to comment.