Skip to content

Add initial devcontainer config #239

Add initial devcontainer config

Add initial devcontainer config #239

Workflow file for this run

name: Python tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v3.1.0
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.1.0
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v2.1.4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-${{ matrix.python-ver }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-${{ matrix.python-ver }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
pip install -Ur requirements.txt
- name: Test with pytest
run: |
pytest
env:
PYTHONDEVMODE: 1
PYTHONPATH: .
- uses: codecov/codecov-action@v3.1.1
with:
name: build-${{ matrix.python-ver }}
fail_ci_if_error: true