name: CI on: push: branches: - master pull_request: branches: - master jobs: test: runs-on: ubuntu-latest env: DJANGO_SETTINGS_MODULE: babybuddy.settings.ci strategy: max-parallel: 4 matrix: python-version: [ 3.6, 3.7, 3.8 ] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - uses: actions/setup-node@v2 with: node-version: '10' - run: npm install -g gulp-cli - run: npm install - name: Install pipenv run: | python -m pip install --upgrade pipenv wheel - name: Cache Python dependencies id: cache-pipenv uses: actions/cache@v2 with: path: ~/.local/share/virtualenvs key: ${{ runner.os }}-python-${{ matrix.python-version }}-pipenv-${{ hashFiles('**/requirements.txt') }} restore-keys: | ${{ runner.os }}-python-${{ matrix.python-version }}-pipenv- - name: Install dependencies if: steps.cache-pipenv.outputs.cache-hit != 'true' run: | pipenv install --deploy --dev - run: gulp lint - run: gulp coverage - name: Submit results to Coveralls uses: AndreMiras/coveralls-python-action@develop with: github-token: ${{ secrets.github_token }} flag-name: test-python-${{ matrix.python-version }} parallel: true coveralls_finish: needs: test runs-on: ubuntu-latest steps: - name: Coveralls Finished uses: AndreMiras/coveralls-python-action@develop with: github-token: ${{ secrets.github_token }} parallel-finished: true