add super-basic unit tests #36 #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Code | |
on: | |
- push | |
jobs: | |
test: | |
if: github.event_name == 'push' | |
runs-on: ubuntu-latest | |
name: Unit tests in Docker | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Configure sysctl limits | |
run: | | |
sudo swapoff -a | |
sudo sysctl -w vm.swappiness=1 | |
sudo sysctl -w fs.file-max=262144 | |
sudo sysctl -w vm.max_map_count=262144 | |
- name: Run Elasticsearch | |
uses: elastic/elastic-github-actions/elasticsearch@master | |
with: | |
stack-version: 8.8.2 | |
security-enabled: false | |
- name: Test with pytest | |
run: | | |
pytest |