Skip to content

fix: misc fixes, starting to work in tox.ini #6

fix: misc fixes, starting to work in tox.ini

fix: misc fixes, starting to work in tox.ini #6

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Run Checks on Code
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: Lint & Test for ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
max-parallel: 2
# fail-fast: true
matrix:
python-version: [3.8, 3.11, 3.12]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
make bootstrap
make dev
- name: Lint
run: make lint
continue-on-error: true
- name: Test with pytest
run: make test
# - uses: actions/checkout@v4
# - name: Set up Python ${{ matrix.python-version }}
# uses: pdm-project/setup-pdm@v3
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install dependencies
# run: |
# python -m pip install --upgrade tox .
# - name: Test with tox
# run: |
# tox --version
# pyversion="${{ matrix.python-version }}"
# tox -e py${pyversion/./}