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

Update action versions in process.yml workflows #3428

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
59 changes: 27 additions & 32 deletions .github/workflows/process.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
make:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Build PROCESS
Expand All @@ -24,14 +24,14 @@ jobs:
cmake -S. -Bbuild
cmake --build build
- name: Archive build artifacts in process
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: process-build-artifacts
path: |
process/**/*.so
process/io/python_fortran_dicts.json
- name: Archive ford artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ford-artifact
path: build/ford_project.pickle
Expand All @@ -40,12 +40,12 @@ jobs:
runs-on: ubuntu-latest
needs: make
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Download build artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: process-build-artifacts
path: process/
Expand All @@ -58,13 +58,8 @@ jobs:
run: |
pytest --cov=process tests/unit -v \
--cov-report xml
- name: Archive unit test coverage data
uses: actions/upload-artifact@v3
with:
name: unit-coverage-artifacts
path: .coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
Expand All @@ -74,12 +69,12 @@ jobs:
runs-on: ubuntu-latest
needs: make
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Download build artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: process-build-artifacts
path: process/
Expand Down Expand Up @@ -107,14 +102,14 @@ jobs:
matrix:
tolerance: [0, 5]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Download build artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: process-build-artifacts
path: process/
Expand All @@ -133,9 +128,9 @@ jobs:
needs: make
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: process-build-artifacts
path: process/
Expand All @@ -146,16 +141,16 @@ jobs:
- name: Run regression input files
run: python tracking/run_tracking_inputs.py run tests/regression/input_files
- name: Archive tracked MFILEs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: tracked-mfiles
path: tracking/*_MFILE.DAT

pre-commit-quality-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dev dependencies
Expand All @@ -173,9 +168,9 @@ jobs:
env:
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: process-build-artifacts
path: process/
Expand All @@ -190,7 +185,7 @@ jobs:
- name: Download tracking data
run: git clone git@github.com:timothy-nunn/process-tracking-data.git process-tracking-data
- name: Download large tokamak MFILE
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: tracked-mfiles
path: tracking/
Expand All @@ -203,7 +198,7 @@ jobs:
- name: Create the tracking dashboard
run: python tracking/tracking_data.py plot process-tracking-data --out tracking.html
- name: Archive tracking dashboard
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: tracking-html
path: tracking.html
Expand All @@ -226,11 +221,11 @@ jobs:
needs: tracking
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download build artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: process-build-artifacts
path: process/
Expand All @@ -242,7 +237,7 @@ jobs:
run: pip install git+https://github.com/jonmaddock/ford
- run: ford documentation/ford/index.md
- name: Download ford project
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ford-artifact
path: build/
Expand All @@ -252,7 +247,7 @@ jobs:
- run: mkdocs build
- run: mv ford_site site
- name: Download tracking html
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: tracking-html
- run: mv tracking.html site || cp site/404.html site/tracking.html
Expand Down
Loading