-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI to test on multiple python versions (#164)
- Loading branch information
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |