name: CI on: push: branches: [main] pull_request: branches: [main] workflow_dispatch: jobs: build: runs-on: ${{ matrix.os }} strategy: matrix: os: [macos-latest, ubuntu-latest] python: ["3.10"] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python }} uses: actions/setup-python@v2 with: python-version: ${{ matrix.python }} # - name: Setup tmate session # uses: mxschmitt/action-tmate@v3 - name: Install dependencies run: | pip install -q --upgrade pip pip install -q -r requirements.txt pip install -q --upgrade codecov coverage black flake8 - name: Lint run: | black --check --diff benchmark flake8 --count benchmark - name: Tests run: | coverage run -m unittest -v benchmark.tests coverage xml - name: Upload coverage to Codecov uses: codecov/codecov-action@v1 with: token: ${{ secrets.CODECOV_TOKEN }} files: ./coverage.xml