Skip to content

Commit

Permalink
Set up a CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
noritada authored Sep 24, 2023
1 parent cbe2384 commit 92d6f2c
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
push:
branches:
- master
- testing
paths:
- ".github/workflows/*"
pull_request:

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev"]

steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install Rye
run: |
curl -sSf https://rye-up.com/get | RYE_INSTALL_OPTION="--yes" bash
- name: Install dependencies
run: |
${GITHUB_WORKSPACE}/.rye/shims/rye sync
- name: Test with pytest
run: |
${GITHUB_WORKSPACE}/.rye/shims/rye run python -m pytest

0 comments on commit 92d6f2c

Please sign in to comment.