Skip to content

Pin third-party GitHub actions (#78) #315

Pin third-party GitHub actions (#78)

Pin third-party GitHub actions (#78) #315

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
- uses: actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e # v2.3.4
- uses: psf/black@stable
build-and-test:
# 03/27/23: it looks like there are issues with the tarballs for all python 3.6 versions
# that are on ubuntu-22.04 (ubuntu-latest at the time). To maintain python compatibility
# we're pinning ubuntu-20.04 so that we can properly run install python 3.6.
#
# As soon as this issue is addressed, we should put the image back to ubuntu-latest:
# https://github.com/actions/setup-python/issues/544
runs-on: ubuntu-20.04
name: Python Library tests
steps:
- name: Check out code
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
- name: Setup Python
uses: actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e # v2.3.4
with:
python-version: '3.6'
- name: Run tests
env:
SANDBOX_API_KEY: ${{ secrets.SANDBOX_API_KEY }}
run: make test