-
Notifications
You must be signed in to change notification settings - Fork 9
62 lines (47 loc) · 1.34 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: test
on:
pull_request:
branches: [ master ]
workflow_dispatch:
concurrency:
group: ci-test-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable
with:
src: "./anypytools"
test:
runs-on: windows-latest
needs: lint
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/setup-pixi@v0.8.1
with:
environments: test
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'master' }}
activate-environment: test
- name: Test with pytest
run: pytest tests
env:
RLM_LICENSE_PASSWORD: ${{ secrets.LICENSE_PASSWORD }}
RLM_LICENSE: ${{ secrets.LICENSE_SERVER }}
test-linux-cloud:
runs-on: ubuntu-latest
container: ghcr.io/anybody/anybodycon-github-actions:latest
needs: lint
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/setup-pixi@v0.8.1
with:
environments: test
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'master' }}
activate-environment: test
- name: test
env:
RLM_LICENSE_PASSWORD: ${{ secrets.LICENSE_PASSWORD }}
RLM_LICENSE: ${{ secrets.LICENSE_SERVER }}
run: pytest tests