Skip to content

fix: resolve package not found error on aws instance (#6) #17

fix: resolve package not found error on aws instance (#6)

fix: resolve package not found error on aws instance (#6) #17

name: Python package
on:
push:
jobs:
cqa:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: zsh
version: 1.0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: pip
cache-dependency-path: '**/pyproject.yaml'
- name: Install test dependencies
run: |
python -m pip install --upgrade pip
pip install --use-deprecated=legacy-resolver -e '.[dev]'
- name: Lint with Ruff
run: |
ruff check .
- name: Format check with Ruff
run: |
ruff format --check .
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
env:
SEQREPO_EB_PROD: true
steps:
- uses: actions/checkout@v4
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: zsh
version: 1.0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: '**/pyproject.yaml'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
make develop
- name: Test with pytest
run: |
make test