Skip to content

Commit

Permalink
update(.github): add tests and env
Browse files Browse the repository at this point in the history
  • Loading branch information
danila committed Feb 3, 2024
1 parent 1c78d93 commit 8396ab6
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
pull_request:
branches: [ "main", "dev" ]

env:
CONFIG_PATH: ./config/config.dev.template.toml
PRIVATE_KEY_PATH: ./private.key.template
PUBLIC_KEY_PATH: ./public.key.template

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -36,19 +41,18 @@ jobs:
cache-dependency-path: poetry.lock
- name: Lint with pre-commit
run: poetry run pre-commit run --all-files
# TODO: configure working with config and keys for jwt
# test:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Install poetry
# run: pipx install poetry
# - name: Set up Python
# uses: actions/setup-python@v4
# with:
# python-version: "3.12"
# cache: "poetry"
# cache-dependency-path: poetry.lock
# - name: Test with pytest
# run: poetry run pytest
test:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
cache: "poetry"
cache-dependency-path: poetry.lock
- name: Test with pytest
run: poetry run pytest

0 comments on commit 8396ab6

Please sign in to comment.