Fix linters. Prepare for 0.2.11 release #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
uses: codecov/codecov-action@v3 |