Skip to content

Commit

Permalink
actions: Add action to run all tests
Browse files Browse the repository at this point in the history
And: Add to .gitignore
  • Loading branch information
Jared Parnell committed Nov 2, 2022
1 parent 7a7c1d8 commit 0d50c35
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Run all tests
on: [push, pull_request]

jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.9
architecture: x64
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
- run: pip install -r requirements_test.txt
- run: pytest tests
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.ve
*.swp
*~
_build
_build
.pyest*
__pycache__

0 comments on commit 0d50c35

Please sign in to comment.