fix: gh-pages python version #305
Workflow file for this run
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: Test on push | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup env config | |
run: cp env.sample .env | |
- name: Install black | |
run: pip install black | |
- name: Build the stack | |
run: docker compose -f docker-compose-ci.yml up -d | |
- name: Test | |
run: bash docker/utils/ci_script.sh | |
- name: Check safety | |
if: ${{ success() }} | |
run: docker compose exec -T -u alcali web safety check | |
- name: Check format | |
if: ${{ success() }} | |
run: black --check . | |
- name: Upload Codecov | |
if: ${{ success() }} | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
run: docker compose exec -T -u alcali -e "$env:CODECOV_TOKEN" web codecov -X s3 | |
- name: Show logs | |
if: ${{ failure() }} | |
run: docker compose logs |