Skip to content

Commit

Permalink
Add end to end integration tests to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gwax committed Feb 22, 2023
1 parent 3fcb988 commit d078654
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 2 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: integration

on:
push:
branches:
# Run on every push to trunk
- trunk
schedule:
# Run every Saturday at 4:05 AM UTC
- cron: "5 4 * * SAT"

jobs:
end-to-end:
runs-on: ubuntu-latest
strategy:
matrix:
extras:
- ""
- "[lxml]"
name: End-to-end tests
steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: "3.8"
cache: pip
cache-dependency-path: |
pyproject.toml
- name: Install project
run: |
pip install -U pip setuptools wheel
pip install -e .${{ matrix.extras }}
- name: Create csv
run: mtg-ssm create collection1.csv

- name: Update csv
run: mtg-ssm update collection1.csv

- name: Create xlsx
run: mtg-ssm create collection2.xlsx

- name: Update xlsx
run: mtg-ssm update collection2.xlsx

- name: Merge csv and xlsx
run: mtg-ssm merge collection3.xlsx collection1.csv collection2.xlsx
4 changes: 3 additions & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
cache-dependency-path: |
pyproject.toml
- run: pip install -e .[lxml,dev]
- run: |
pip install -U pip setuptools wheel
pip install -e .[lxml,dev]
- uses: pre-commit/action@v3.0.0
4 changes: 3 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ jobs:
pyproject.toml
- name: Install project
run: pip install -e .[lmxl,dev]
run: |
pip install -U pip setuptools wheel
pip install -e .[lxml,dev]
- name: Execute pytest
run: pytest tests/
Expand Down

0 comments on commit d078654

Please sign in to comment.