Escape url slash regex #44
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: oci-python-ci | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches_ignore: [] | |
jobs: | |
formatting: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup black linter | |
run: conda create --quiet --name black | |
- name: Lint python code | |
run: | | |
export PATH="/usr/share/miniconda/bin:$PATH" | |
source activate black | |
pip install black | |
black --check opencontainers | |
testing: | |
runs-on: ubuntu-latest | |
needs: formatting | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup OpenContainers Python environment | |
run: | | |
conda create --quiet --name ocipython | |
conda install pytest | |
- name: Run tests | |
env: | |
CI: true | |
run: | | |
# activate conda env | |
export PATH="/usr/share/miniconda/bin:$PATH" | |
source activate ocipython | |
# run tests | |
pytest opencontainers/tests/test*.py -v -x |