Skip to content

Commit

Permalink
Fix @main macro conflict with Julia nightly (#50)
Browse files Browse the repository at this point in the history
* Fix @main macro conflict with Julia nightly

* Remove unused DelimitedFiles dependency

* Disable wannierize/coopt tests due to missing iron fixtures

* Disable docs test

---------

Co-authored-by: Junfeng Qiao <[email protected]>
  • Loading branch information
Technici4n and qiaojunfeng authored Oct 10, 2024
1 parent 0614acb commit c677e1b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,23 @@ jobs:
with:
file: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
- run: |
julia --project=docs -e '
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()'
- run: |
julia --project=docs -e '
using Documenter: doctest
using Wannier
doctest(Wannier)'
- run: julia --project=docs docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
# docs:
# name: Documentation
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: julia-actions/setup-julia@v1
# - run: |
# julia --project=docs -e '
# using Pkg
# Pkg.develop(PackageSpec(path=pwd()))
# Pkg.instantiate()'
# - run: |
# julia --project=docs -e '
# using Documenter: doctest
# using Wannier
# doctest(Wannier)'
# - run: julia --project=docs docs/make.jl
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
1 change: 0 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ Bravais = "ada6cbde-b013-4edf-aa94-f6abe8bd6e6b"
Brillouin = "23470ee3-d0df-4052-8b1a-8cbd6363e7f0"
Comonicon = "863f3e99-da2a-4334-8734-de3dacbe5542"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
LazyGrids = "7031d0ef-c40d-4431-b2f8-61a8d2f650db"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
NLSolversBase = "d41bc354-129a-5804-8e4c-c37616107c6c"
Expand Down
2 changes: 1 addition & 1 deletion src/cli/main.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ include("fermisurf.jl")
"""
Julia package for Wannier functions.
"""
@main
@Comonicon.main
3 changes: 2 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ mat2vec(A::AbstractMatrix) = [v for v in eachcol(A)]
include("wannierize/parallel_transport.jl")
include("wannierize/constrain_center/max_localize.jl")
include("wannierize/constrain_center/disentangle.jl")
include("wannierize/coopt.jl")
# TODO: iron fixtures are missing from the repo
# include("wannierize/coopt.jl")

include("realspace.jl")

Expand Down

0 comments on commit c677e1b

Please sign in to comment.