Skip to content

Commit

Permalink
Merge 48fc623 into c7b8b94
Browse files Browse the repository at this point in the history
  • Loading branch information
kousu committed Aug 7, 2022
2 parents c7b8b94 + 48fc623 commit 71e28b1
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,33 @@ on:
push:
branches:
- master
paths-ignore:
- '**.md'
- '**.rst'
- '**.bib'
- '.github/**'
- '!.github/workflows/run_tests.yml'
- 'dev/**'
- 'docs/**'
- 'images/**'
- '.gitignore'
- '.pre-commit-config.yaml'
- '.readthedocs.yml'
# Trigger the workflow on pull requests, but reveal no secrets, do not use pull_request_target, see:
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request_target
pull_request:
paths-ignore:
- '**.md'
- '**.rst'
- '**.bib'
- '.github/**'
- '!.github/workflows/run_tests.yml'
- 'dev/**'
- 'docs/**'
- 'images/**'
- '.gitignore'
- '.pre-commit-config.yaml'
- '.readthedocs.yml'

env:
# Even when given -y, apt will still sometimes hang at a prompt if a package
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/run_tests_dummy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This is a dummy version of run_tests.yml, which allows for conditional checks to still be "Required Statuses" for pull requests to be allowed to be merged

name: Run tests on all platforms

# see https://docs.github.com/en/enterprise-cloud@latest/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks
# and https://github.com/orgs/community/discussions/13690
on:
pull_request:
paths:
# this list needs to be kept in sync manually with the opposite list in run_tests.yml
- '**.md'
- '**.rst'
- '**.bib'
- '.github/**'
- '!.github/workflows/run_tests.yml'
- 'dev/**'
- 'docs/**'
- 'images/**'
- '.gitignore'
- '.pre-commit-config.yaml'
- '.readthedocs.yml'

jobs:
ultra_matrix_test:
name: Matrix Test of Python ${{ matrix.python-version }} on ${{ matrix.os }}

# this section also needs to be kept in sync with run_tests.yml
strategy:
matrix:
# This list must be kept **in sync** with the Required Statuses in https://github.com/ivadomed/ivadomed/settings/branch_protection_rules/5051948
os: [ "macos-latest", "windows-latest", "ubuntu-20.04", "ubuntu-18.04" ]
python-version: [ 3.8 ]
test-name:
- integration-test

runs-on: ubuntu-latest

steps:
- run: 'echo "No code changes, so no build required" '

0 comments on commit 71e28b1

Please sign in to comment.