Skip to content

Commit

Permalink
cici
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed Jul 21, 2024
1 parent d383be3 commit 2fc61f0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 21 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/auto-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,19 @@ name: 🔁 Pytest ⏳x15

on:
schedule:
- cron: '*/15 * * * *'
- cron: "*/60 * * * *"

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: eifinger/setup-rye@v1
with:
enable_cache: true
cache_prefix: 'venv-codeboxapi'
- name: Sync rye
run: rye sync
- name: Run Pytest
env:
CODEBOX_API_KEY: ${{ secrets.CODEBOX_API_KEY }}
run: rye run pytest
- uses: actions/checkout@v2
- uses: eifinger/setup-rye@v1
with:
enable_cache: true
cache_prefix: "venv-codeboxapi"
- run: rye sync
- run: rye run pytest
env:
CODEBOX_API_KEY: ${{ secrets.CODEBOX_API_KEY }}
18 changes: 9 additions & 9 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@ name: ☑️ CodeCheck
on: [push]

jobs:
pre-commit:
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
runs-on: ubuntu-latest
steps:
pre-commit:
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: eifinger/setup-rye@v1
with:
enable-cache: true
cache-prefix: 'venv-codeboxapi'
cache-prefix: "venv-codeboxapi"
- name: pin version
run: rye pin ${{ matrix.python-version }}
- name: Sync rye
run: rye sync
- name: Run pre-commit
run: rye run pre-commit run --all-files
- name: Run ruff
run: rye run ruff
- name: Run tests
env:
CODEBOX_API_KEY: ${{ secrets.CODEBOX_API_KEY }}
Expand Down

0 comments on commit 2fc61f0

Please sign in to comment.