aprsd/.github/workflows/python.yml

32 lines
765 B
YAML
Raw Normal View History

2022-11-04 09:04:14 -04:00
name: Test and Build
on: [push, pull_request]
jobs:
tox:
runs-on: ubuntu-latest
strategy:
matrix:
2021-02-18 16:51:31 -05:00
python-version: [3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
run: tox
2022-11-04 09:04:14 -04:00
build:
needs: tox
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
working-directory: ./docker
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)