Skip to content

Develop with rye

Develop with rye #88

Workflow file for this run

name: tests
on:
push:
branches:
- main
paths:
- "*.py"
- esgpull/**
- tests/**
- .github/workflows/ci.yml
pull_request:
branches:
- main
paths:
- "*.py"
- esgpull/**
- tests/**
- .github/workflows/ci.yml
jobs:
tests:
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Install the latest version of rye
uses: eifinger/setup-rye@v4
with:
enable-cache: true
cache-prefix: ${{ matrix.python-version }}
- name: Pin python-version ${{ matrix.python-version }}
run: rye pin ${{ matrix.python-version }}
- name: Sync dependencies
run: rye sync
- name: Run tests
run: rye test