fix: résout un problème de dépendance de dev avec python3.10 #315
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: | |
branches: | |
- main | |
- recette | |
- github-actions | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
SECRET_KEY: fake-secret-key | |
DATABASE_URL: sqlite:///db.sqlite3 | |
METABASE_DATABASE_URL: sqlite:///metabase.sqlite3 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- name: Install front dependencies | |
run: npm install | |
- name: Build front | |
run: npm run build | |
- name: Set up python3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
cache: 'pipenv' | |
- name: Install pipenv | |
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python | |
- name: Install dependencies | |
run: pipenv install -d | |
- name: Run tests | |
run: pipenv run pytest |