-
Notifications
You must be signed in to change notification settings - Fork 285
41 lines (39 loc) · 1.18 KB
/
weekly_dependency_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Install lightly from scratch and run tests.
# Python environment for regular unit tests is cached. In this workflow,
# we always pick up the latest dependencies and therefore check if a new
# external release breaks lightly.
name: Weekly Dependency Test
on:
workflow_dispatch:
schedule:
- cron: '0 22 * * THU' # each Thursday night, at 22:00 UTC
jobs:
test_fresh_install:
name: Test fresh install
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set Up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Set Up Environment
run: |
make install-uv reset-venv
source .venv/bin/activate
make install-latest
- name: Run Tests
id: run_tests
run: |
source .venv/bin/activate
pytest -n auto
- name: Slack Notification
if: always()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_NIGHTLY }}
SLACK_ICON_EMOJI: ":github:"
SLACK_USERNAME: Lightly PIP Package ${{ github.workflow }}
SLACK_COLOR: ${{ steps.run_tests.outcome }}
SLACK_FOOTER: ""