Skip to content

Commit

Permalink
Create develop_pull_request_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bdc34 authored Oct 5, 2023
1 parent 0b7d0c9 commit 2830327
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/develop_pull_request_test.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2830327

Please sign in to comment.