Skip to content
Permalink
Browse files
Move tests into implementation-specific folders and workflows (#32)
* Move tests into implementation-specific folders and workflows

* Move workflows up a level so they run

* Improve naming

* Disallow multiple concurrent jobs

* Prevent concurrency

* Check concurrency change
  • Loading branch information
thisisnic committed Aug 12, 2021
1 parent 02e2eaf commit f4e5a81f5f20fa9b301e42e8f8351401072eb245
Showing 3 changed files with 92 additions and 23 deletions.

This file was deleted.

@@ -0,0 +1,44 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

name: Test Python Cookbook

on:
pull_request:
branches:
- main
paths:
- "python/**"
- ".github/workflows/test_python_cookbook.yml"

concurrency:
group: ${{ github.repository }}-${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
test_py:
name: "Test Python Cookbook"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: sudo apt install libcurl4-openssl-dev libssl-dev python3-pip
- name: Run tests
run: make pytest
- name: Build cookbook
run: make py

@@ -0,0 +1,48 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

name: Test R Cookbook

on:
pull_request:
branches:
- main
paths:
- "r/**"
- ".github/workflows/test_r_cookbook.yml"

concurrency:
group: ${{ github.repository }}-${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
test_r:
name: "Test R Cookbook"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup R
uses: r-lib/actions/setup-r@v1
- name: Setup pandoc
uses: r-lib/actions/setup-pandoc@v1
- name: Install dependencies
run: sudo apt install libcurl4-openssl-dev libssl-dev
- name: Run tests
run: make rtest
- name: Build cookbooks
run: make r

0 comments on commit f4e5a81

Please sign in to comment.