Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test in GithubActions #10

Merged
merged 14 commits into from
Feb 3, 2024
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
Loading