Skip to content

Commit 834f1cb

Browse files
authored
Merge pull request #82 from RockefellerArchiveCenter/workflow-updates
Update GH Workflow
2 parents 3602593 + eb0dad9 commit 834f1cb

File tree

4 files changed

+48
-24
lines changed

4 files changed

+48
-24
lines changed

.github/workflows/enforcer.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: 'Check Branch'
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- base
7+
8+
jobs:
9+
check_branch:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check branch
13+
if: github.head_ref != 'development'
14+
run: |
15+
echo "ERROR: You can only merge to base from the development branch."
16+
exit 1

.github/workflows/tests.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- development
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
python-version: ["3.10"]
14+
toxenv: [py310, linting]
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
cache: pip
25+
26+
- name: Install dependencies
27+
run: pip install -r test_requirements.txt
28+
29+
- name: Run tox
30+
run: tox
31+
env:
32+
TOXENV: ${{ matrix.toxenv }}

.travis.yml

-23
This file was deleted.

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
Helpers for Elasticsearch, including Analyzers and Documents.
44

5-
[![Build Status](https://travis-ci.org/RockefellerArchiveCenter/rac_es.svg?branch=base)](https://travis-ci.org/RockefellerArchiveCenter/rac_es)
65

76
## Setup
87

0 commit comments

Comments
 (0)