Skip to content

Commit

Permalink
Update GH workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lbonaldo committed Oct 16, 2023
1 parent 8abbe4a commit b8f056a
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 24 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:
- "1.6" # LTS (64-bit Linux)
- "1.7"
- "1.8"
- '1' # latest stable 1.x Julia release (Linux)
- '1.9' # latest stable Julia release (Linux)
os:
- ubuntu-latest
arch:
- x64
include: # additional tests [Julia-nightly]
include: # additional tests [Julia-nightly] (Linux)
- os: ubuntu-latest
version: 'nightly'
arch: x64
Expand All @@ -33,16 +33,19 @@ jobs:
run: |
git checkout -b ${GITHUB_REF#refs/heads/}-testlogs
mkdir test/Logs; cd test/Logs
git config --global init.defaultBranch main
git init
git config --local user.name GenXProject
git config --local user.email "[email protected]"
git remote add testlog https://github.com/GenXProject/GenX-testlog.git
git remote add testlog https://$LOG_TOKEN@github.com/GenXProject/GenX-testlog.git
git pull testlog main
if [ -d Logs_v${{ matrix.version }} ]; then
mv Logs_v${{ matrix.version }}/*.log .
else
mkdir Logs_v${{ matrix.version }}
mkdir Logs_v${{ matrix.version }}
fi
env:
LOG_TOKEN: ${{ secrets.LOG_TOKEN }}
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
Expand All @@ -52,9 +55,11 @@ jobs:
- uses: julia-actions/julia-runtest@v1
- name: Commit logs and push back to repo
run: |
cd ${GITHUB_WORKSPACE}/test/Logs
mv *.log Logs_v${{ matrix.version }}
git add -f Logs_v${{ matrix.version }}
git commit -m "Update test logs for Julia v${{ matrix.version }}"
git pull --rebase testlog main # pull again to avoid conflicts from other versions
git push testlog main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ LoggingExtras = "e6f89c97-d47a-5376-807f-9c37f3926c36"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test", "Logging", "LoggingExtras", "JLD2"]
test = ["Test", "JLD2", "Logging", "LoggingExtras"]
4 changes: 0 additions & 4 deletions test/Logs/Electrolyzer.log

This file was deleted.

4 changes: 0 additions & 4 deletions test/Logs/MethodofMorris.log

This file was deleted.

3 changes: 0 additions & 3 deletions test/Logs/MultiStage.log

This file was deleted.

4 changes: 0 additions & 4 deletions test/Logs/PiecewiseFuel_CO2.log

This file was deleted.

4 changes: 0 additions & 4 deletions test/Logs/VREStor.log

This file was deleted.

0 comments on commit b8f056a

Please sign in to comment.