You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
590 B

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