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

Merge Tests.yml and OscarTests.yml into one workflow #179

Merged
merged 2 commits into from
Feb 11, 2025
Merged
Show file tree
Hide file tree
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
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
Loading