testing dev data on dev deployments #1377
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
--- | |
name: Run Tests | |
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
run-lint-and-tests: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:16.4-alpine3.20 | |
env: | |
POSTGRES_USER: hushline | |
POSTGRES_PASSWORD: hushline | |
POSTGRES_DB: hushline | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Poetry | |
run: pipx install poetry | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.12" | |
cache: "poetry" | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: "npm" | |
- name: Install Python dependencies | |
run: poetry install | |
- name: Install Node dependencies | |
run: npm install | |
- name: Lint | |
run: poetry run make lint | |
- name: Test | |
run: poetry run make test |