From e88024a29ec08367d8555f413332f0b1a86471cf Mon Sep 17 00:00:00 2001 From: DrChainsaw Date: Sun, 10 Sep 2023 14:18:23 +0200 Subject: [PATCH 1/2] Add ci.yml Remove travis.yml --- .github/workflows/ci.yml | 65 ++++++++++++++++++++++++++++++++++++++++ .travis.yml | 24 --------------- 2 files changed, 65 insertions(+), 24 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..1018cb4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,65 @@ +name: CI +on: + push: + branches: [main, master] + tags: ["*"] + pull_request: +jobs: + test: + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + version: + - '1' # automatically expands to the latest stable 1.x release of Julia + # - nightly + os: + - ubuntu-latest + arch: + - x64 + #- x86 # Dagger doesn't seem to support x86 + include: + # test macOS and Windows with latest Julia only + - os: macOS-latest + arch: x64 + version: 1 + - os: windows-latest + arch: x64 + version: 1 + - os: windows-latest + arch: x86 + version: 1 + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.version }} + arch: ${{ matrix.arch }} + - uses: actions/cache@v1 + env: + cache-name: cache-artifacts + with: + path: ~/.julia/artifacts + key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} + restore-keys: | + ${{ runner.os }}-test-${{ env.cache-name }}- + ${{ runner.os }}-test- + ${{ runner.os }}- + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 + - uses: julia-actions/julia-processcoverage@v1 + - uses: codecov/codecov-action@v2 + with: + files: lcov.info +# This project uses DeployPage instead +# docs: +# name: Documentation +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v2 +# - uses: julia-actions/julia-buildpkg@latest +# - uses: julia-actions/julia-docdeploy@latest +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4fb3cde..0000000 --- a/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -# Documentation: http://docs.travis-ci.com/user/languages/julia/ -language: julia - -# avoid duplicate tests in PRs -branches: - only: - - master -os: - - linux - - osx - - windows -julia: - - 1 - - nightly -matrix: - allow_failures: - - julia: nightly -notifications: - email: false -after_success: - # push coverage results to Coveralls - - julia -e 'import Pkg; cd(Pkg.dir("FileTrees")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())' - # push coverage results to Codecov - - julia -e 'import Pkg; cd(Pkg.dir("FileTrees")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())' From f73ee080f68e137061ddf994cb78fbd670669165 Mon Sep 17 00:00:00 2001 From: DrChainsaw Date: Sun, 10 Sep 2023 15:44:24 +0200 Subject: [PATCH 2/2] Remove x86 from windows entry --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1018cb4..f478e05 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,9 +27,9 @@ jobs: - os: windows-latest arch: x64 version: 1 - - os: windows-latest - arch: x86 - version: 1 + #- os: windows-latest + # arch: x86 + # version: 1 steps: - uses: actions/checkout@v2 - uses: julia-actions/setup-julia@v1