--- name: Python package "on": push: pull_request: schedule: - cron: '0 6 * * *' # Daily 6AM UTC build jobs: build: runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest, macos-latest] python-version: [3.7, 3.8, 3.9, '3.10'] fail-fast: false steps: - 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 python -m pip install -e ".[remote,dep_server,dev]" python setup.py develop - name: Install Debian-specific dependencies run: | sudo apt update sudo apt install python3-wheel libapt-pkg-dev python -m pip install \ python_apt@git+https://salsa.debian.org/apt-team/python-apt.git python -m pip install -e ".[debian]" if: "matrix.python-version != 'pypy3' && matrix.os == 'ubuntu-latest'" - name: Style checks run: | pip install flake8 python -m flake8 - name: Typing checks run: | pip install -U mypy types-toml python -m mypy ognibuild if: "matrix.python-version != 'pypy3'" - name: Test suite run run: | python -m unittest tests.test_suite env: PYTHONHASHSEED: random