-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
736f157
commit 54d1979
Showing
1 changed file
with
18 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,28 +24,29 @@ jobs: | |
env: | ||
RP_SIDEKICK_DATABASE: postgres://postgres:postgres@localhost/rp_sidekick | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
- name: Install gettext | ||
run: sudo apt-get install gettext | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ hashFiles('requirements.txt', 'requirements-dev.txt') }}-pip | ||
- uses: actions/setup-python@v2 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
- name: Install dependancies | ||
- uses: abatilo/[email protected] | ||
with: | ||
poetry-version: "1.11.7" | ||
- name: Install dependencies | ||
id: install-deps | ||
run: | | ||
poetry install | ||
- name: Check formatting | ||
# Lints/tests should always run, even if other lints/tests have failed. | ||
if: success() || failure() && steps.install-deps.outcome == 'success' | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt -r requirements-dev.txt | ||
poetry run ruff format --check | ||
- name: Lint | ||
if: success() || failure() && steps.install-deps.outcome == 'success' | ||
run: | | ||
flake8 | ||
python manage.py makemigrations rp_dtone rp_transferto rp_recruit\ | ||
sidekick --dry-run | grep 'No changes detected' || (echo 'There are\ | ||
changes which require migrations.' && exit 1) | ||
black --check . | ||
isort -c -rc . | ||
- name: Test | ||
poetry run ruff check | ||
- name: Run tests | ||
if: success() || failure() && steps.install-deps.outcome == 'success' | ||
run: | | ||
py.test | ||
poetry run pytest -vv |