Fix static image #153
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: [push, pull_request] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
env: | |
OS: ubuntu-latest | |
PYTHON: ${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup Python | |
uses: actions/setup-python@master | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Start Redis | |
uses: supercharge/redis-github-action@1.4.0 | |
- name: Install dependencies | |
run: pip install -e .[dev] | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build custom container with OWSLib | |
uses: docker/build-push-action@v5 | |
with: | |
file: opendrift/Dockerfile | |
push: false | |
tags: opendrift-leeway-custom:latest | |
- name: Run tests | |
run: pytest |