-
Notifications
You must be signed in to change notification settings - Fork 129
39 lines (33 loc) · 1.34 KB
/
pip_install_test.yaml
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
---
# This workflow pip install's the compiler_gym package and checks that the
# module can be imported.
#
# The goal of this workflow is to catch failures in the installation process
# that can occur because of a breaking change in the dependent packages, and to
# test for any import-time error.
name: Pip install test
on:
workflow_dispatch:
schedule:
- cron: 0 0 * * * # daily
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python: [3.7, 3.8, 3.9]
steps:
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install python wheel
# We use the TestPyPI repository to install the compiler_gym
# package from because we use the install count on the main
# repository to track growth and usage of the project. We also
# provide the main PyPI repo as a fallback for installing
# dependencies.
run: python -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ compiler_gym
- name: Check package version
run: python -c 'import compiler_gym; print(compiler_gym.__version__)'