Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vsdudakov committed Aug 3, 2024
1 parent 3935181 commit 47ae19c
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: FastAdmin CD

on:
release:
types: [released]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false

jobs:
cd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Deploy Package
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry build
poetry publish
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: FastAdmin CI

on: [create, push]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
ci:
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"
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: v22.4.1
cache: 'yarn'
cache-dependency-path: 'frontend/yarn.lock'
- name: Install Dependencies
run: make install
- name: Run Lint
run: make lint
- name: Run Tests
env:
ADMIN_USER_MODEL: User
ADMIN_USER_MODEL_USERNAME_FIELD: username
ADMIN_SECRET_KEY: secret_key
run: make test
- name: Run Build
run: make -C frontend build
- name: Upload coverage reports to Codecov

0 comments on commit 47ae19c

Please sign in to comment.