Skip to content

Add unit tests and config github action #1

Add unit tests and config github action

Add unit tests and config github action #1

Workflow file for this run

name: CI
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
jobs:
code-quality:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pdm install -dG lint
- name: Run ruff
run: pdm run ruff check --diff
testing:

Check failure on line 29 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 29, Col: 1): Unexpected value 'testing'
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pdm install -dG test
- name: Run tests
run: pdm run pytest
- name: secrets for testing
run: ${{ secrets.GOOGLE_CLIENT_ID }} > t.txt && cat t.txt
- name: vars for testing
run: ${{ vars.GOOGLE_REDIRECT_URI }} > t.txt && cat t.txt