Skip to content

allow env class to be passed (#71) #182

allow env class to be passed (#71)

allow env class to be passed (#71) #182

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
- 'release/**'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[dev,sodaracer]
- name: Lint with flake8
run: |
# Stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7 --show-source --statistics --max-line-length=88
# Full lint, will not stop the build on failure.
flake8 . --count --exit-zero --ignore=E203,E501,W503,F811 --show-source --statistics --max-line-length=88
- name: Test with pytest
run: |
pytest tests/test_*.py
package:
name: Build & inspect the package.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: hynek/build-and-inspect-python-package@v1