forked from google-deepmind/concordia
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.18 KB
/
sdist-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
# A workflow to test the sdist that will be released to PyPI
name: sdist-test
on:
workflow_dispatch:
inputs:
runs-on:
description: 'OS to run on.'
type: string
default: 'ubuntu-latest'
python-version:
description: 'Python version to use.'
type: string
default: '3.11'
permissions: read-all
jobs:
sdist-test:
name: Test sdist
runs-on: ${{ inputs.runs-on }}
timeout-minutes: 90
steps:
- name: Checkout Concordia
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- name: Build source distribution
run: python setup.py sdist
- name: Set up Python
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3
with:
python-version: ${{ inputs.python-version }}
- name: Install Python dependencies
run: |
pip install --upgrade pip
pip install --upgrade setuptools
pip install pytest-xdist
- name: Install source distribution
run: |
pip install dist/*.tar.gz
pip list
- name: Test source distribution
run: |
pytest -n auto --pyargs concordia