Add Dockerfile configuration #17
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: Build traffcap | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.8" | |
- name: Install dependencies | |
run: | | |
curl -sSL https://pdm.fming.dev/install-pdm.py | python3 - | |
pdm install | |
- name: Lint with Ruff | |
run: | | |
# stop the build if there are Python syntax errors or undefined names | |
pdm run lint | |
- name: Test with pytest | |
run: | | |
pdm run test |