Browse Source

Update workflows

pull/1310/head
Hironsan 3 years ago
parent
commit
f520c2924e
2 changed files with 7 additions and 7 deletions
  1. 8
      .github/workflows/ci.yml
  2. 6
      .github/workflows/pypi-publish.yml

8
.github/workflows/ci.yml

@ -22,16 +22,16 @@ jobs:
run: |
pipenv run wait_for_db
pipenv run migrate
working-directory: ./app
working-directory: ./backend
- name: Lint with flake8
run: |
pipenv run flake8
working-directory: ./app
working-directory: ./backend
- name: Lint with isort
run: |
pipenv run isort
working-directory: ./app
working-directory: ./backend
- name: Run tests
run: |
pipenv run test
working-directory: ./app
working-directory: ./backend

6
.github/workflows/pypi-publish.yml

@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v2
- name: Preparation
run: |
mkdir app/client
mkdir backend/client
- name: Use Node.js
uses: actions/setup-node@v1
with:
@ -21,7 +21,7 @@ jobs:
run: |
yarn install
yarn build
cp -r dist ../app/client/
cp -r dist ../backend/client/
working-directory: ./frontend
env:
PUBLIC_PATH: "/static/_nuxt/"
@ -37,7 +37,7 @@ jobs:
- name: collectstatic
run: |
pipenv run collectstatic
working-directory: ./app
working-directory: ./backend
- name: Build a binary wheel and a source tarball
run: |
python setup.py sdist

Loading…
Cancel
Save