Skip to content

Commit

Permalink
Updating dependencies (#48)
Browse files Browse the repository at this point in the history
Updating dependencies
  • Loading branch information
Karik Isichei authored Sep 24, 2021
1 parent 2e785ba commit d199c7e
Show file tree
Hide file tree
Showing 6 changed files with 201 additions and 188 deletions.
34 changes: 22 additions & 12 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run tests
name: Run tests with package dependencies

on: pull_request

Expand All @@ -9,15 +9,25 @@ jobs:
max-parallel: 4
matrix:
python-version: [3.7, 3.8]
poetry-install: [from-lock-file, fresh-install]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry update
poetry run pytest -vv tests/test_sql_parse.py
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies ${{ matrix.poetry-install }}
run: |
if [ "${{ matrix.poetry-install }}" == "from-lock-file" ]; then
echo "Installing dependencies from lock file"
else
echo "Removing lock file and installing latest possible dependencies"
rm poetry.lock
fi
python -m pip install --upgrade pip
pip install poetry
poetry config virtualenvs.create false \
&& poetry install --no-interaction --no-ansi
- name: Run Tests
run: |
pytest tests/ -vv
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## v4.0.1 - 2021-09-24

## Changed

- Updated project dependencies to align with other packages we heavily use.

## v4.0.0 - 2021-07-16

## Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ A package that is used to run SQL queries speficially configured for the Analyti
pip install pydbtools

## Or install from git with a specific release
pip install "pydbtools @ git+https://github.com/moj-analytical-services/pydbtools@v3.0.0"
pip install "pydbtools @ git+https://github.com/moj-analytical-services/pydbtools@v4.0.1"
```

## Quickstart guide
Expand Down
Loading

0 comments on commit d199c7e

Please sign in to comment.