Skip to content

Commit

Permalink
added yaml for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
khajoue2 committed Dec 13, 2024
1 parent 59e0796 commit 8d30f93
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 13 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/gtf_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: GTF Comparison Tests

on:
push:
paths:
- '3rd-party-tools/build-indices/**'
branches: [ main ]
pull_request:
paths:
- '3rd-party-tools/build-indices/**'
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest

defaults:
run:
working-directory: 3rd-party-tools/build-indices

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pandas
- name: Create test data directory
run: |
mkdir -p test_data
mkdir -p test_output
- name: Run tests
run: python -m unittest test_gtf_comparison.py -v

- name: Upload test results
uses: actions/upload-artifact@v2
if: always()
with:
name: gtf-test-results
path: 3rd-party-tools/build-indices/test_output/
16 changes: 3 additions & 13 deletions .github/workflows/gtf_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,14 @@ name: GTF Comparison Tests

on:
push:
paths:
- '3rd-party-tools/build-indices/**'
branches: [ main ]
pull_request:
paths:
- '3rd-party-tools/build-indices/**'
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest

defaults:
run:
working-directory: 3rd-party-tools/build-indices

steps:
- uses: actions/checkout@v2

Expand All @@ -32,9 +24,7 @@ jobs:
pip install pandas
- name: Create test data directory
run: |
mkdir -p test_data
mkdir -p test_output
run: mkdir -p test_data test_output

- name: Run tests
run: python -m unittest test_gtf_comparison.py -v
Expand All @@ -43,5 +33,5 @@ jobs:
uses: actions/upload-artifact@v2
if: always()
with:
name: gtf-test-results
path: 3rd-party-tools/build-indices/test_output/
name: test-results
path: test_output/

0 comments on commit 8d30f93

Please sign in to comment.