Skip to content

Commit

Permalink
fix workflows github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Macktireh committed Sep 27, 2024
1 parent 443d196 commit 92e4be7
Showing 1 changed file with 21 additions and 24 deletions.
45 changes: 21 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ name: CI

on:
push:
branches:
- main
- develop
branches: ["develop", "main"]
pull_request:
branches:
- main
branches: ["develop", "main"]

jobs:
code-quality:
Expand All @@ -26,22 +23,22 @@ jobs:
- name: Run ruff
run: pdm run ruff check --diff

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
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

0 comments on commit 92e4be7

Please sign in to comment.