ci: install add arcgis dependencies #4
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: Push Events | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
release-please: | |
name: Create release | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
outputs: | |
release_created: ${{ steps.release-please.outputs.release_created }} | |
steps: | |
- name: 🚀 Create Release | |
id: release-please | |
uses: agrc/release-composite-action@v1 | |
with: | |
release-type: python | |
prerelease: ${{ github.ref_name == 'dev' }} | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
github-app-id: ${{ secrets.UGRC_RELEASE_BOT_APP_ID }} | |
github-app-key: ${{ secrets.UGRC_RELEASE_BOT_APP_KEY }} | |
github-app-name: ${{ secrets.UGRC_RELEASE_BOT_NAME }} | |
github-app-email: ${{ secrets.UGRC_RELEASE_BOT_EMAIL }} | |
upload-coverage: | |
name: Upload coverage | |
runs-on: ubuntu-latest | |
needs: release-please | |
if: needs.release-please.outputs.release_created | |
steps: | |
- name: ⬇️ Set up code | |
uses: actions/checkout@v4 | |
with: | |
show-progress: false | |
- name: 🐍 Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
cache: pip | |
cache-dependency-path: setup.py | |
- name: 📥 Install arcgis dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libkrb5-dev | |
- name: 🏗 Install module | |
run: pip install .[tests] | |
- name: ⚙️ Add config file | |
run: cp config.sample.json config.json | |
- name: 🧪 Run tests | |
run: pytest | |
- name: ⬆️ Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./cov.xml |