Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add end to end integration tests to CI #28

Merged
merged 1 commit into from
Feb 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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