All checks were successful
Run apocalypse tests / Explore-Gitea-Actions (push) Successful in 10s
38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
name: Run apocalypse tests
|
|
run-name: ${{ gitea.actor }} is testing apocalypse
|
|
on: [push]
|
|
|
|
jobs:
|
|
Explore-Gitea-Actions:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
shell: bash -l {0}
|
|
steps:
|
|
- name: Confirm name of the repo
|
|
run: echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
|
- name: Check out repo code
|
|
uses: actions/checkout@v4
|
|
- name: Clone repo
|
|
run: echo "The ${{ gitea.repository }} repository has been cloned to the runner."
|
|
- name: install pixi
|
|
run: |
|
|
export ARCHIVE="pixi-x86_64-unknown-linux-musl.tar.gz"
|
|
export URL="https://github.com/prefix-dev/pixi/releases/latest/download/$ARCHIVE"
|
|
export PIXI=/root/.pixi
|
|
mkdir -p $PIXI/bin
|
|
curl --location --remote-time --output $PIXI/bin/$ARCHIVE $URL
|
|
tar -xzf $PIXI/bin/$ARCHIVE -C $PIXI/bin/
|
|
echo "$PIXI/bin" >> $GITEA_PATH
|
|
- name: install env + pixi info
|
|
run: |
|
|
pixi install -e tests
|
|
pixi info
|
|
which python
|
|
shell: pixi run -e tests bash -e {0}
|
|
- name: Run tests
|
|
run: |
|
|
export PYTHONPATH=${{ github.workspace }}
|
|
pytest .
|
|
shell: pixi run -e tests bash -e {0}
|