From f2ea3072c30d0bb66a958333498b0796f01bb875 Mon Sep 17 00:00:00 2001 From: Tim Howgego Date: Tue, 26 Jan 2021 21:54:53 +0000 Subject: [PATCH 1/2] Create test.yml --- .github/workflows/test.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..d7ce5f5 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,25 @@ +# Run pytest on push + +name: test_atcociftogtfs + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.9 + uses: actions/setup-python@v2 + with: + python-version: 3.9 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Test with pytest + run: | + pytest From 703992b4acf94ad2527e73e66aeb788a136cb939 Mon Sep 17 00:00:00 2001 From: Tim Howgego Date: Tue, 26 Jan 2021 21:58:19 +0000 Subject: [PATCH 2/2] Update test.yml --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d7ce5f5..5b20385 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,6 +19,7 @@ jobs: run: | python -m pip install --upgrade pip pip install pytest + pip install . if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Test with pytest run: |