ci: Update to supported versions of github actions #32
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: Continuous Integration | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
test-linux: | |
name: Pytest | |
strategy: | |
matrix: | |
python-version: ['3.7', '3.8', '3.9', '3.10'] | |
runs-on: ubuntu-latest | |
env: | |
SCALABRAD_VERSION: '0.8.3' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: 'x64' | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: '8' | |
- name: Install scalabrad | |
run: | | |
bash scripts/test/install-scalabrad.sh | |
echo "PATH=$PATH:$HOME/scalabrad-$SCALABRAD_VERSION/bin/" >> $GITHUB_ENV | |
- name: Install dependencies | |
run: | | |
sed 's/>=/==/' requirements.txt > exact_requirements.txt | |
pip install -r requirements.txt | |
pip install . | |
pip install pytest coveralls | |
- name: Run python tests | |
run: scripts/test/test.sh |