-
Notifications
You must be signed in to change notification settings - Fork 5
28 lines (23 loc) · 1.02 KB
/
test.yml
File metadata and controls
28 lines (23 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Simply run pytest inside the docker container (.devcontainer/Docker) on
# any push to any branch
name: Test
on:
push:
branches:
- '*'
workflow_dispatch: # Allows manual triggering of the workflow
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
# TODO: fix this stuff -- no longer working for some reason. -Dave
# - name: Build Docker image
# run: docker build -t pep750-docker -f .devcontainer/Dockerfile .
# - name: Check sort order
# run: docker run -v $(pwd):/app -w /app pep750-docker /bin/bash -c "pip install -r requirements.txt && isort --check pep"
# - name: Check formatting
# run: docker run -v $(pwd):/app -w /app pep750-docker /bin/bash -c "pip install -r requirements.txt && black --check pep"
# - name: Run tests
# run: docker run -v $(pwd):/app -w /app pep750-docker /bin/bash -c "pip install -r requirements.txt && pytest"