diff --git a/.github/workflows/develop_pull_request_test.yml b/.github/workflows/develop_pull_request_test.yml new file mode 100644 index 000000000..174b0a0df --- /dev/null +++ b/.github/workflows/develop_pull_request_test.yml @@ -0,0 +1,26 @@ +on: + pull_request: + branches: + - develop + +jobs: + ci: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v3 + - name: Install Python + uses: actions/setup-python@v4 + - name: Setup a local virtual environment + run: | + pip install poetry + poetry config virtualenvs.create true --local + poetry config virtualenvs.in-project true --local + - uses: actions/cache@v3 + name: Define a cache for the virtual environment based on the dependencies lock file + with: + path: ./.venv + key: venv-${{ hashFiles('poetry.lock') }} + - name: Install the project dependencies + run: poetry install + - name: Run the automated tests (for example) + run: poetry run pytest -v browse