Skip to content

Commit

Permalink
Add caching to testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
davenquinn committed Jan 13, 2024
1 parent f3f528e commit f9d85f7
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f9d85f7

Please sign in to comment.