Last active
May 30, 2022 16:53
-
-
Save twyle/0c35a4b1d30585b064f35e3d14655b8a to your computer and use it in GitHub Desktop.
This file contains hidden or 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: "Development Build" | |
on: | |
push: | |
branches: [ development ] | |
pull_request: | |
branches: [ development ] | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
environment: | |
name: Development | |
strategy: | |
matrix: | |
python-version: [3.7, 3.8, 3.9] | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Test with pytest | |
run: | | |
touch .env | |
echo FLASK_APP=${{secrets.FLASK_APP}} >> .env | |
echo FLASK_ENV=${{secrets.FLASK_ENV}} >> .env | |
echo CLIENT_ID=${{secrets.CLIENT_ID}} >> .env | |
echo CLIENT_SECRET=${{secrets.CLIENT_SECRET}} >> .env | |
if [ -d tests ] || [ -d test ]; then python -m pytest; fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment