Skip to content

Commit

Permalink
Merge Tests.yml and OscarTests.yml into one workflow (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens authored Feb 11, 2025
1 parent a295054 commit b8a1ff6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 132 deletions.
106 changes: 0 additions & 106 deletions .github/workflows/OscarTests.yml

This file was deleted.

52 changes: 26 additions & 26 deletions .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
tags: '*'
pull_request:
workflow_dispatch:

Expand Down Expand Up @@ -33,18 +34,11 @@ jobs:
- '1.11'
- '1.12-nightly'
- 'nightly'
julia-arch:
- x64
oscar-version:
- 'stable'
- 'devel'
os:
- ubuntu-latest
# include:
# Add a few macOS jobs (not too many, the number we can run in parallel is limited)
# - julia-version: '1.8'
# julia-arch: x64
# os: macOS-latest
# - julia-version: 'nightly'
# julia-arch: x64
# os: macOS-latest

steps:
- uses: actions/checkout@v4
Expand All @@ -53,28 +47,34 @@ jobs:
# be able to properly deal with PRs / merges
fetch-depth: 2

- name: "Set up Julia"
uses: julia-actions/setup-julia@v2
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}

- name: Restore cache
uses: julia-actions/cache@v2
with:
cache-name: julia-cache;workflow=${{ github.workflow }};julia=${{ matrix.julia-version }};arch=${{ runner.arch }}
include-matrix: false
- uses: julia-actions/cache@v2

- name: "Remove Oscar.jl compat"
if: ${{ matrix.oscar-version == 'devel' }}
shell: julia --color=yes {0}
run: |
using TOML
project = TOML.parsefile("Project.toml")
project["compat"]["Oscar"] = "1"
open("Project.toml", "w") do io
TOML.print(io, project)
end
- name: "Build package"
uses: julia-actions/julia-buildpkg@latest
- name: "Install OSCAR dev version"
if: ${{ matrix.oscar-version == 'devel' }}
shell: julia --project=. --color=yes {0}
run: |
using Pkg
Pkg.develop("Oscar")
Pkg.pin("Oscar")
# - name: "limit OpenMP threads"
# if: runner.os == 'macOS'
# # restrict number of openMP threads on macOS due to oversubscription
# run: echo "OMP_NUM_THREADS=1" >> $GITHUB_ENV
- uses: julia-actions/julia-buildpkg@v1

- name: "Run tests"
uses: julia-actions/julia-runtest@latest
- uses: julia-actions/julia-runtest@v1
with:
depwarn: 'error'

Expand Down

0 comments on commit b8a1ff6

Please sign in to comment.