Skip to content

Commit

Permalink
Merge pull request #10 from RockefellerArchiveCenter/workflow-tweaks
Browse files Browse the repository at this point in the history
tweak workflows
  • Loading branch information
p-galligan authored Oct 24, 2024
2 parents 4aca9f1 + aad16d9 commit 26e8f4c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/enforcer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'Check Branch'

on:
pull_request:
branches:
- base

jobs:
check_branch:
runs-on: ubuntu-latest
steps:
- name: Check branch
if: github.head_ref != 'development'
run: |
echo "ERROR: You can only merge to base from the development branch."
exit 1
8 changes: 1 addition & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest

environment:
name: ${{ vars.DEV_ENVIRONMENT }}
name: development

steps:
- name: Checkout Repository
Expand All @@ -21,12 +21,6 @@ jobs:
with:
python-version: '3.11'

- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip

- name: Install dependencies
run: pip install tox

Expand Down

0 comments on commit 26e8f4c

Please sign in to comment.