Skip to content

Commit

Permalink
added smoke test (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
thehighestmath authored Oct 4, 2024
1 parent 727c833 commit 3c5290c
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Tests

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:

smoke-test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Create list.txt
run: echo "OSLL/github_repo_commitment_calc" > list.txt

- name: Install dependencies
run: pip install -r requirements.txt

- name: Run test
run: python3 main.py --commits --token ${{ secrets.TEST_TOKEN_GITHUB }} --list list.txt --out out.csv --branch master

- name: Check if out.csv exists
run: ls out.csv

- name: Fail if out.csv does not exist
if: failure()
run: exit 1

- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: test-results
path: out.csv

0 comments on commit 3c5290c

Please sign in to comment.