Skip to content

Commit

Permalink
Merge pull request #6 from tulip/conner.gha
Browse files Browse the repository at this point in the history
GitHub Actions: Added lint and test GHA
  • Loading branch information
henryivesjones authored Feb 14, 2023
2 parents b6372ef + afc3194 commit d3cf2ef
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/relationalize-python-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Relationalize Python Lint

on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- "relationalize/**"
- ".github/workflows/relationalize-python-lint.yml"

jobs:
run:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.8"
architecture: "x64"

- name: Python Lint
run: |
pip install black==23.1.0
black . --check
working-directory: relationalize
25 changes: 25 additions & 0 deletions .github/workflows/relationalize-python-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Relationalize Python Unit Tests

on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- "relationalize/**"
- ".github/workflows/relationalize-python-tests.yml"

jobs:
run:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.8"
architecture: "x64"

- name: Python Unit Tests
run: |
pip install build
bash ./runPythonTests.sh
working-directory: scripts

0 comments on commit d3cf2ef

Please sign in to comment.