Skip to content

Commit

Permalink
Add github action for automated testing
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismostert committed Mar 11, 2024
1 parent f69ec19 commit 934e324
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 1,101 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build and test

on:
push:
branches:
- main

pull_request:
branches:
- main

jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Build and install package
run: |
python -m pip install .[tests]
- name: Download testdata
run: |
wget -i testfiles.txt -P data
- name: Unzip all testdata
run: |
unzip -d data -o 'data/*.zip'
- name: Run tests
run: |
pytest
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,10 @@ To build the package yourself instead of installing the `.whl`, simply clone the
python -m build
```

or you can simply install the package by running
```
python -m pip install .
```

## Codegen
These bindings are mostly generated using [xsData](https://xsdata.readthedocs.io) with some minor changes where needed. See commit history for these changes.
Loading

0 comments on commit 934e324

Please sign in to comment.