-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (41 loc) · 1.19 KB
/
ci.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
name: ci
on:
push:
branches:
- main
pull_request:
pull_request_target:
jobs:
# The authorize job is used to authorize external contributors to run tests
# on the repository. This is necessary because the repository secrets are
# not available to external contributors.
# Source: https://iterative.ai/blog/testing-external-contributions-using-github-actions-secrets
authorize:
environment:
${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }}
runs-on: ubuntu-latest
steps:
- run: |
true
ci:
runs-on: 'ubuntu-latest'
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install Test Dependencies
run: |
pip install -r test-requirements.txt
pip install -r requirements.txt
- name: Run Tests
env:
SERVER: ${{ secrets.SERVER }}
LOGIN: ${{ secrets.LOGIN }}
KEY: ${{ secrets.KEY }}
run: |
pytest -v -vrxs