Skip to content

Fix UNet implementation with arbitrary channel sizes (#243) #873

Fix UNet implementation with arbitrary channel sizes (#243)

Fix UNet implementation with arbitrary channel sizes (#243) #873

Workflow file for this run

name: CI
on:
pull_request:
branches:
- master
push:
branches:
- master
tags: '*'
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/') }}
# needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
contents: read
jobs:
test:
name: ${{ matrix.suite }} - Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
env:
GROUP: ${{ matrix.suite }}
TEST_FAST: ${{ matrix.version != '1' || matrix.os != 'ubuntu-latest' }}
strategy:
fail-fast: false
matrix:
version:
- '1.6' # Replace this with the minimum Julia version that your package supports.
- '1'
- 'nightly'
os:
- ubuntu-latest
# - macOS-latest
# - windows-latest
arch:
- x64
suite:
- 'AlexNet|VGG'
- 'GoogLeNet|SqueezeNet|MobileNet|MNASNet'
- 'EfficientNet'
- '^ResNet|WideResNet'
- '^ResNeXt' # split off from ResNet to reduce overall runtime
- 'SEResNet|SEResNeXt'
- 'Res2Net|Res2NeXt'
- 'Inception'
- 'DenseNet'
- 'UNet'
- 'ConvNeXt|ConvMixer'
- 'MLP-Mixer|ResMLP|gMLP'
- 'ViT'
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- name: Setup test env for 1.6
if: ${{ matrix.version == '1.6' }}
run: |
julia --color=yes --depwarn=yes --project=./test -e 'using Pkg; Pkg.rm("ReTestItems")'
- name: Run tests
uses: julia-actions/julia-runtest@v1
continue-on-error: ${{ !(matrix.version == '1' && matrix.os == 'ubuntu-latest') && matrix.version == 'nightly' }}
with:
coverage: ${{ matrix.version == '1' && matrix.os == 'ubuntu-latest' }}
- uses: actions/upload-artifact@v3
with:
name: coverage-${{ hashFiles('**/*.cov') }}
path: '**/*.cov'
if: matrix.version == '1' && matrix.os == 'ubuntu-latest'
coverage:
name: Coverage
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
with:
version: '1'
arch: x64
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: actions/download-artifact@v3
- run: |
cp -r coverage-*/* .
rm -rf coverage-*
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v3
with:
file: lcov.info
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
with:
version: '1.6'
- uses: julia-actions/cache@v1
- run: |
julia --project=docs -e '
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()'
- run: julia --project=docs docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}