diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..c095d41 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,26 @@ +--- +name: Test +on: + - pull_request + +jobs: + pytest: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8"] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements_test.txt + pip install pytest pytest-dotenv pytest-dateutil + - name: Test with pytest + run: | + pytest -sv tests/ diff --git a/requirements_test.txt b/requirements_test.txt new file mode 100644 index 0000000..c7f2a7d --- /dev/null +++ b/requirements_test.txt @@ -0,0 +1,6 @@ +click +requests +python-dotenv +pytest +pytest-dotenv +python-dateutil