Skip to content

CompatHelper: bump compat for Spglib to 0.8, (keep existing compat) #3173

CompatHelper: bump compat for Spglib to 0.8, (keep existing compat)

CompatHelper: bump compat for Spglib to 0.8, (keep existing compat) #3173

Workflow file for this run

name: CI
on:
push:
branches:
- master
tags: ['*']
pull_request:
schedule:
- cron: '0 4 * * 6' # Run every Sunday
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
#
# Unit tests
#
test:
name: Julia stable - ${{ matrix.os }} - ${{ matrix.payload }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- {os: ubuntu-latest, payload: "fast,example" }
- {os: macOS-latest, payload: fast }
- {os: windows-latest, payload: fast }
- {os: ubuntu-latest, payload: mpi }
env:
GKS_ENCODING: "utf8"
GKSwstype: "100" # Needed for Plots-related tests
PLOTS_TEST: "true" # Needed for Plots-related tests
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: '1.7'
arch: x64
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
if: ${{ matrix.payload != 'mpi' }}
env:
DFTK_TEST_ARGS: ${{ matrix.payload }}
- name: Execute MPI-parallel tests
run: |
julia --project -e '
using Pkg; Pkg.build(); Pkg.precompile()
Pkg.add("MPI"); using MPI; MPI.install_mpiexecjl()
Pkg.test(; test_args=["quick"])
'
$HOME/.julia/bin/mpiexecjl -np 2 julia --check-bounds=yes --depwarn=yes --project --color=yes -e 'using Pkg; Pkg.test(coverage=true)'
if: ${{ matrix.payload == 'mpi' }}
env:
DFTK_TEST_ARGS: fast
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v3
with:
files: lcov.info
#
# Nightly
#
nightly:
name: Julia nightly - ubuntu-latest
runs-on: ubuntu-latest
strategy:
fail-fast: false
env:
GKS_ENCODING: "utf8"
GKSwstype: "100" # Needed for Plots-related tests
PLOTS_TEST: "true" # Needed for Plots-related tests
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: nightly
arch: x64
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
DFTK_TEST_ARGS: fast
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v3
with:
file: lcov.info