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: | run: |
pipenv run wait_for_db pipenv run wait_for_db
pipenv run migrate pipenv run migrate
working-directory: ./app
working-directory: ./backend
- name: Lint with flake8 - name: Lint with flake8
run: | run: |
pipenv run flake8 pipenv run flake8
working-directory: ./app
working-directory: ./backend
- name: Lint with isort - name: Lint with isort
run: | run: |
pipenv run isort pipenv run isort
working-directory: ./app
working-directory: ./backend
- name: Run tests - name: Run tests
run: | run: |
pipenv run test pipenv run test
working-directory: ./app
working-directory: ./backend

6
.github/workflows/pypi-publish.yml

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

Loading…
Cancel
Save