diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 9001e69..03138aa 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -6,24 +6,34 @@ on: branches: [main] jobs: test: + name: Continuous integration tests runs-on: ubuntu-latest steps: + - name: Check out repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - name: Install Python + uses: actions/setup-python@v4 with: python-version: '3.11' - name: Install Poetry - uses: snok/install-poetry@v1 + uses: abatilo/actions-poetry@v2 + + - name: Setup a local virtual environment (if no poetry.toml file) + run: | + poetry config virtualenvs.create true --local + poetry config virtualenvs.in-project true --local - # Bundling - - name: Install Python libraries - run: make + - name: Cache Python dependencies + uses: actions/cache@v3 + with: + path: ./.venv + key: venv-${{ hashFiles('poetry.lock') }} - - name: Run tests - run: make test + - name: Install the project dependencies + run: poetry install - # - name: Run Sparrow integration tests - # run: sparrow test integration + - name: Run the automated tests + run: make test \ No newline at end of file