build.yml 450 B

123456789101112131415161718
  1. name: build
  2. on: [pull_request, push]
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. strategy:
  7. matrix:
  8. python-version: ['3.7', '3.8', '3.9', '3.10']
  9. steps:
  10. - uses: actions/checkout@v2
  11. - run: |
  12. docker build -f py.Dockerfile \
  13. --build-arg PYTHON_VERSION=${{ matrix.python-version }} \
  14. --tag minigrid-docker .
  15. - name: Run tests
  16. run: docker run minigrid-docker pytest