Files
contest-assistant/.github/workflows/python-app.yml
Xevion 8a1a2df2c1 Fix pipenv failing to import sqlalchemy-json
'sqlalchemy_json' does not import when running pytest through pipenv. Prepending 'python -m' to the pytest command fixes this (although I'm not sure why it even fails to import a global module).

Hope this works in the GitHub Actions workflow.
2021-02-18 23:46:05 -06:00

34 lines
757 B
YAML

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python application
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python 3.7.7
uses: actions/setup-python@v2
with:
python-version: 3.7.7
- name: Setup Pipenv
uses: dschep/install-pipenv-action@v1
- name: Install dependencies
run: |
pipenv install --dev
- name: Run tests
run: pipenv run python -m pytest