diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 0000000..e4c74de --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -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 diff --git a/.gitignore b/.gitignore index c9811e7..da9f58a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ .ve *.swp *~ -_build \ No newline at end of file +_build +.pyest* +__pycache__