Skip to content

Commit

Permalink
Add CI to test on multiple python versions (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
syeopite authored Dec 28, 2024
1 parent c84f0fb commit 8cd3a8f
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/priviblur-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Priviblur CI

on:
schedule:
- cron: "0 0 * * *" # Every day at 00:00
push:
branches:
- "master"
pull_request:
branches: "*"
paths-ignore:
- "*.md"
- screenshots/*
- utils/**
- assets/**

jobs:
build:
runs-on: ubuntu-latest
name: "Build and test on ${{matrix.python-version}}"
continue-on-error: true
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Setup config
run: cp config.example.toml config.toml

- name: Compile locales
run: pybabel compile -d locales -D priviblur

- name: Run
run : |
python -m src.server &
- name: Wait and test
run: sleep 5 && curl -Isf http://localhost:8000/explore/trending

0 comments on commit 8cd3a8f

Please sign in to comment.