Skip to content

Commit

Permalink
Merge pull request #1 from WaseemSabir/waseemsabir/add-workflow
Browse files Browse the repository at this point in the history
Add workflow to run tests
  • Loading branch information
WaseemSabir authored Dec 13, 2022
2 parents 8dfaa37 + ea940da commit 84ae68e
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Run tests

on:
workflow_dispatch:
pull_request:
paths:
- 'firestore_size/**'
- 'tests/**'
push:
branches:
- master
paths:
- 'firestore_size/**'
- 'tests/**'

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: '3.8'
- uses: actions/cache@v3
id: cache
with:
path: ${{ env.pythonLocation }}
# if requirements or requirements_test changes, cache will be rebuilt
key: ${{ hashFiles('**/requirements*.txt') }}
- name: Install dependencies
# reinstall requirements on cache miss
if: steps.cache.outputs.cache-hit != 'true'
run: pip install -r requirements.txt
- name: Run Test
run: python3 setup.py pytest

0 comments on commit 84ae68e

Please sign in to comment.